Java scrip setting off blocked content alert?

Discussion in 'HTML & Website Design' started by resto, Jul 22, 2008.

  1. #1
    I am making a site and when I put rollovers in it sets off the blocked content alert on the Norton 360 when I view it in my browser.
    I am working in Dreamweaver and I tried doing then in the behavior panel and in the insert rollover image and both ways it sets off the blocked content alert.

    I built sites before with rollovers without this problem and I browse sites with java script all day and the blocked content doesn’t go off but when I open my site off line it goes off.

    Does anyone know a way to put in rollovers where it won’t set the content blocker off so easy?

    This is the java script that’s causing the blocked content alert.

    <script type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    }

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
     
    resto, Jul 22, 2008 IP
  2. Website Design Perth

    Website Design Perth Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why not avoid js altogether?

    Do your rollovers with css instead.
     
    Website Design Perth, Jul 22, 2008 IP
  3. resto

    resto Peon

    Messages:
    173
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hmm... didn't know I could do that, thanks. I will look into it
     
    resto, Jul 23, 2008 IP