Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2004
    Posts
    924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pop up window script for website

    Does anyone know of a script l could use which would enable a photo to be show in a pop up window when a user clicks on a hyperlink?

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Pop up window script for website

    Two options:

    1) Target attribute of the A tag (Click Here)
    2) Javascript Window.Open() function (Click Here)
    see this article for more information.

  3. #3
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Pop up window script for website

    Mark's the pro at this, so what he says, goes. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> But if you want to see an example of something you might tweak, go here: AlHoffman.Org The script file is attached as a .TXT file. It would go in the body of your page. Please note that it sets a cookie so it only pops up once a day, so you might need to delete the cookie if you want it to work more than once. (I hope)

    Edited: Excuse me, I remembered that wrong. It only pops up once per browser session, not daily. So, if one closes the browser and reruns it, the script will run again. It's to prevent annoyance of repeatedly popping up when someone hits the Back button!
    Attached Files Attached Files

Posting Permissions

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