How to make a box pop-up when a url is clicked?

Discussion in 'Programming' started by HydroJohn, Jul 19, 2008.

  1. #1
    Hi there guys Im looking for some sort of script for when a url on my website is clicked a pop-up box pops up and displays more information about the product. If anyone knows how to do this please post on here or pm me Thanks :D
     
    HydroJohn, Jul 19, 2008 IP
  2. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #2
    You can use Javascript to open up a popup box with the details you want.

    If your not using PHP/MySql, Make an HTML page with the product details and then...

    on the link where you want to popup a window add

    and in the <head> section of the same page add this script.

    Also in the body tag, add the following...


    Let me know if you have any problems.
     
    Talker, Jul 19, 2008 IP
    HydroJohn likes this.
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You may be able to completely avoid scripting all the way, if the popup text is small, by using css popups.

    I use them in place of the old Javajunk click-and-shows that used to be on the page:
    http://stommepoes.nl/Scooterverzekeren/scooterafsluiten1.html

    Hover over the question marks.

    It does not work with click-- if you need something to only appear on click and remain on the page, then you'll need scripting because not every browser will keep stuff on the screen with :focus (IE6 doesn't understand :focus and Opera loses the focus if the mouse moves away from the object, even if the mouce button is still held down).
     
    Stomme poes, Jul 19, 2008 IP