PDA

View Full Version : help with box



brunareginato
03-30-2008, 03:49 PM
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:
function toggle(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}

Tks!

Nile
03-30-2008, 05:52 PM
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...