JAVA help needed on script

Discussion in 'Software' started by Jackfarrel, Oct 16, 2009.

  1. Jackfarrel

    Jackfarrel Private E-2

    I have a problem with a script, I downloaded this script and I'm trying to use it on my website: http://www.dynamicdrive.com/dynamicindex11/abox2.htm
    Do you know how I can make that script not automatically open the two boxes, but only open and pop up the boxes when you click a link?
    Please help!
    Thank you so much for your time everyone.
     
  2. MutD

    MutD Specialist

    Change the code,

    Code:
    window.onload=function(){
    new Popup(...
    }
    to

    Code:
    function popUp1() {
    new Popup(....
    }
    and in your link do this:

    Code:
    <a onclick="popup1()" href="...">SomeLink</a>

    This is Javascript by the way, not Java. Quite a big difference.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds