Results 1 to 2 of 2

Thread: help with box

  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with box

    Hello,

    I need help with a box that has a hidden content and when click it shows the content. But it isnt working like I should, because the page is changing her position. You can see it here: http://www.meiaduzia.com.br/bruninha/testegaleria/ , try click in a picture on the right.
    How can I make the page doesnt move?

    The java code is:
    [codebox] function toggle(obj) {
    var el = document.getElementById(obj);
    if ( el.style.display != "none" ) {
    el.style.display = 'none';
    }
    else {
    el.style.display = '';
    }
    }[/codebox]

    Tks!

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, see for each image that your using you have a new js file containing the real image?
    This is non-sence. You should use one js file that holds all the js[well thats relevant] and use the same function with variables. It is very hard to help you since you have like a bunch of different js files for like 4 images...
    Last edited by Nile; 03-30-2008 at 06:01 PM.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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