SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2002
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Stuck with POP UP!!!

    I am trying to get this code to open a
    new window when the image is clicked and
    after looking at it for a couple of
    hours I can honestly say that I am stuck.
    I think the problem is in the slidelink()
    function but I have no idea...

    Code:
    <script language="JavaScript1.1">
    <!--
    var image1=new Image()
    image1.src="http://216.119.103.136/images/tops/about/flash_mov2.gif"
    var image2=new Image()
    image2.src="http://216.119.103.136/images/tops/about/flash_mov3.gif"
    var image3=new Image()
    image3.src="http://216.119.103.136/images/tops/about/flash_mov4.gif"
    //-->
    </script>
    <a onmouseover="window.status='Click here to learn more about PRC'; return true" onmouseout="window.status=''" href="javascript:slidelink()"><img src="http://216.119.103.136/images/tops/about/flash_mov2.gif" name="slide" border=0></a>
    <script>
    <!--
    var step=1
    var whichimage=1
    function slideit(){
    if (!document.images)
    return
    document.images.slide.src=eval("image"+step+".src")
    whichimage=step
    if (step<3)
    step++
    else
    step=1
    setTimeout("slideit()",1800)
    }
    slideit()
    function slidelink(){
    if (whichimage==1)
    window.location="http://216.119.103.136/why/flash/WhyPRC.html"
    else if (whichimage==2)
    window.location="http://216.119.103.136/why/flash/WhyPRC.html"
    else if (whichimage==3)
    window.location="http://216.119.103.136/why/flash/WhyPRC.html"
    }
    //-->
    </script>
    Can anyone offer advise as to how I can make a window pop up from here?

    Thank you in advance.

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change
    window.location="http://216.119.103.136/why/flash/WhyPRC.html"
    to
    window.open("http://216.119.103.136/why/flash/WhyPRC.html");

    or
    window.open("http://216.119.103.136/why/flash/WhyPRC.html", "", "toolbar=no,scrollbars=auto,resizable=no,top=100,left=100,width=800,height=400");
    if you want a new window without toolbar and with some specific size and position


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
  •