Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Linking from one page to display an image on another page

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #33061
    iblend
    Member

    I have this page: http://interactiveblend.com/dev_fruit/ and when you click on a box it will take you to a products page.

    On the products page (http://interactiveblend.com/dev_fruit/products.html), when you rollover a flavor the nutrition facts show up. Is it possible to click a box on the home page and have the corresponding nutritional fact display on the following page? I’m willing to pay someone to help me to get this to work.

    function shiftTo(state)
    {
    document.getElementById('all_bars').className = 'state'+state;
    var nf = document.getElementById('nutrition_facts');
    if(state == '2')
    nf.src = 'images/nutrition_facts_original.jpg';
    else if(state == '3')
    nf.src = 'images/nutrition_facts_tropical.jpg';
    else if(state == '4')
    nf.src = 'images/nutrition_facts_banana_berry.jpg';
    else if(state == '5')
    nf.src = 'images/nutrition_facts_orange_tango.jpg';
    else if(state == '6')
    nf.src = 'images/nutrition_facts_cherry_berry.jpg';
    }
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.