Onmouseover javascript in frames window WHY WONT ITORK!! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Onmouseover javascript in frames window WHY WONT ITORK!!

HELP

I am trying to use some javascript code in a feame window

I can't tell what is going on with it


The code works fine on a normal page


I have posted the page on my geocities web site


here it is

http://www.geocities.com/Colosseum/8005/clubTimer/index.html




Comments

  • Hi Colin,

    The reason your images are not showing up is because of the backslash, it's not looking in the root directory where you have them.


    Your code should look as follows;

    ***Start Of Script Correction***





    ***End Of Script Correction***


    I think that's everything. Try this, and if you have any further problems, just post them.


    Keep up the good work.


    Sincerely,

    Jason Gorman


    Jason Gorman (Jason_Gorman@scholars.com)

    Learning Advisor, http://scholars.com

    Microsoft Authorized Technical Education Center

    Novell Authorized Online Training Provider


    ----original message----


    : HELP

    : I am trying to use some javascript code in a feame window

    : I can't tell what is going on with it


    : The code works fine on a normal page


    : I have posted the page on my geocities web site


    : here it is

    : http://www.geocities.com/Colosseum/8005/clubTimer/index.html





  • Hi Colin,

    The reason your images are not showing up is because of the backslash, it's not looking in the root directory where you have them.


    Your code should look as follows;

    ***Start Of Script Correction***



    ***End Of Script Correction***


    I think that's everything. Try this, and if you have any further problems, just post them.


    Keep up the good work.


    Sincerely,

    Jason Gorman


    Jason Gorman (Jason_Gorman@scholars.com)

    Learning Advisor, http://scholars.com

    Microsoft Authorized Technical Education Center

    Novell Authorized Online Training Provider


    ----original message----


    : HELP

    : I am trying to use some javascript code in a feame window

    : I can't tell what is going on with it


    : The code works fine on a normal page


    : I have posted the page on my geocities web site


    : here it is

    : http://www.geocities.com/Colosseum/8005/clubTimer/index.html





  • Hi Colin,

    The reason your images are not showing up is because of the backslash, it's not looking in the root directory where you have them.


    Your code should look as follows;

    ***Start Of Script Correction***


    Image1= new Image(130,20)

    Image1.src = "main1.gif"

    Image2 = new Image(130,20)

    Image2.src = "main2.gif"


    Image3= new Image(130,20)

    Image3.src = "product1.gif"

    Image4 = new Image(130,20)

    Image4.src = "product2.gif"



    Image5= new Image(130,20)

    Image5.src = "demo1.gif"

    Image6 = new Image(130,20)

    Image6.src = "demo2.gif"


    Image7= new Image(130,20)

    Image7.src = "download1.gif"

    Image8 = new Image(130,20)

    Image8.src = "download2.gif"



    Image9= new Image(130,20)

    Image9.src = "order1.gif"

    Image10 = new Image(130,20)

    Image10.src = "order2.gif"




    function SwapMainOut() {

    document.mainflip.src = Image2.src; return true;

    }



    function SwapMainBack() {

    document.mainflip.src = Image1.src; return true;

    }



    function SwapProdOut() {

    document.prodflip.src = Image4.src; return true;

    }



    function SwapProdBack() {

    document.prodflip.src = Image3.src; return true;

    }



    function SwapDemoOut() {

    document.demoflip.src = Image6.src; return true;

    }



    function SwapDemoBack() {

    document.demoflip.src = Image5.src; return true;

    }




    function SwapDownOut() {

    document.downflip.src = Image8.src; return true;

    }



    function SwapDownBack() {

    document.downflip.src = Image7.src; return true;

    }




    function SwapOrderOut() {

    document.orderflip.src = Image10.src; return true;

    }



    function SwapOrderBack() {

    document.orderflip.src = Image9.src; return true;

    }



    ***End Of Script Correction***


    I think that's everything. Try this, and if you have any further problems, just post them.


    Keep up the good work.


    Sincerely,

    Jason Gorman


    Jason Gorman (Jason_Gorman@scholars.com)

    Learning Advisor, http://scholars.com

    Microsoft Authorized Technical Education Center

    Novell Authorized Online Training Provider


    ----original message----


    : HELP

    : I am trying to use some javascript code in a feame window

    : I can't tell what is going on with it


    : The code works fine on a normal page


    : I have posted the page on my geocities web site


    : here it is

    : http://www.geocities.com/Colosseum/8005/clubTimer/index.html





Sign In or Register to comment.