Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unwanted redirect in script

    Can someone check into this code and see if there is hiding redirect built in to it.
    It directs me to http://2awm.com without my knowledge. I got this script from a forum and am attempting to use it for an image fade in fade out.

    PS: If you know another fading javascript, please let me know.


    <script type="text/javascript">
    var SbrowseIE = navigator.appName;
    if(SbrowseIE == "Microsoft Internet Explorer") SbrowseIE = true;
    else SbrowseIE = false;

    function fadeImage(imgName, fadeVal){
    var opFilt;
    if (SbrowseIE){
    opFilt=document.getElementById(imgName).style.filter;
    opFilt=opFilt.substr(opFilt.indexOf("=")+1,opFilt.indexOf(")")-(opFilt.indexOf("=")+1));
    }
    else
    opFilt=document.getElementById(imgName).style.MozOpacity*100;

    if(opFilt <= 0 || opFilt >= 100)
    fadeVal=fadeVal*(-1);
    opFilt=opFilt-fadeVal;
    if (SbrowseIE)
    document.getElementById(imgName).style.filter="alpha(opacity="+opFilt+")";
    else
    document.getElementById(imgName).style.MozOpacity=opFilt/100;
    return fadeVal;
    }
    var fVal2;
    var firstTime=true;
    function fadeLoop(){
    if (firstTime){
    firstTime=false;
    fVal2=1;

    if (SbrowseIE){
    document.getElementById("img1").style.filter="alpha(opacity=90)";
    } else {
    document.getElementById("img1").style.MozOpacity=.9;
    }
    }
    fVal2=fadeImage("img2",fVal2);
    setTimeout("fadeLoop()",100);
    }
    </script>
    </head>

    <body onload="fadeLoop();">
    <div style="position:absolute;left:33%;top:0px;"><img src="../TestJava/Fade.jpg" border="0" id="img1" /></div>
    <div style="position:absolute;left:33%;top:0px;"><img src="../TestJava/FadeIn.jpg" id="img2" /></div>

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    I do not see a redirect there.

    Here are numerous alternatives:

    Fading Image Scripts

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Check your computer & browsers for spys, worms, and other viruses.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •