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!
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!