see i told you.. the element id of the function is different from the element id inside your onload
[quote]var mp3="<div id='[b]show[/b]' style='display:inline;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a title='Open Download Center'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:showForm();\" value=\"Download Area +\"></a></div>"+
"<div id='[b]close[/b]'..........................>"+
"<div id='[b]hide[/b]' style='display: none'>"+[/quote]
[quote]function showForms()
{
var divs = document.getElementById("[b]hides[/b]");
var shows = document.getElementById("[b]shows[/b]");
var closes = document.getElementById("[b]closes[/b]");
if(divs.style.display!="none")
{
hideForms();
}
else
{
divs.style.display = "block";
shows.style.display = "none";
closes.style.display = "block";
}
}
function hideForms()
{
var divs = document.getElementById("hides");
var shows = document.getElementById("shows");
var closes = document.getElementById("[b]closes[/b]");
divs.style.display = "none";
shows.style.display = "block";
closes.style.display = "none";
}
function r(){
return;
}[/quote]
id's must be the same for you to open your Download Center.. thanks
your codes inside your onload should be like this
[quote]var mp3="<div id='[b]shows[/b]' style='display:inline;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a title='Open Download Center'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:showForm();\" value=\"Download Area +\"></a></div>"+
"<div id='[b]closes[/b]'..........................>"+
"<div id='[b]hides[/b]' style='display: none'>"+[/quote]
Last edited by blurrycloud (2008-03-04 01:11:58)