SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: help script

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2001
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help script

    i want to use the script no blank window but with my *.gif file and to change name to link and to put un other(my link)
    plz i need your help
    thanks in advance.
    the script is...

    <script>
    <!--
    function coolIntro()
    {
    if (!document.layers&&!document.all&&!document.getElementById)
    {
    paramstp="height=580,width=796,top=0,left=0,scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes"
    var gwa=window.open("newwind.html","",paramstp);
    if (gwa.focus){gwa.focus();}
    return;
    }
    var movespeed=200;
    var resizespeed=100;
    var winreswidth=window.screen.availWidth;
    var winresheight=window.screen.availHeight;
    var leftspeed=winreswidth/movespeed;
    var topspeed=winresheight/movespeed;
    var movewidth=winreswidth;
    var moveheight=winresheight;
    var widthspeed=winreswidth/resizespeed;
    var heightspeed=winresheight/resizespeed;
    var sizewidth=0;
    var sizeheight=0;
    var gwa=open("newwind.html","","left="+winreswidth+",top="+winresheight+",width=100,height=100,toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes");
    for (move=0;move<movespeed;move++)
    {
    gwa.moveTo(movewidth,moveheight);
    movewidth-=leftspeed;
    moveheight-=topspeed;
    }
    gwa.moveTo("0","0");

    for (size=0;size<resizespeed;size++)
    {
    gwa.resizeTo(sizewidth,sizeheight);
    sizewidth+=widthspeed;
    sizeheight+=heightspeed;
    }
    gwa.resizeTo(winreswidth,winresheight);
    if (gwa.focus){gwa.focus();}
    }
    // -->
    </script>
    <p align="center"><a href="javascript:coolIntro()"><font face="Arial Black"><b>Click to open new window</b></font></a></p>




    </body>

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not entirely sure I follow, but if you want to use this script to open a window with your gif file in it then you need to create an .html file and then edit this line:

    Code:
    var gwa=window.open("newwind.html","",paramstp);
    so that it matches your file.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


Bookmarks

Posting Permissions

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