lukezweb
12-10-2003, 01:50 PM
on this script when you click certian links it has javascript:plus
i was wodnering for a link in here such as:
<a href=javascript:minus('admin')>Close Panel</a>
how can i set that to remove it ?
the javascript for making it appear is there :)
<TD COLSPAN=3>
<CENTER>
<script>
function plus(whichid) {
var showid=document.getElementById(whichid);
if (showid.style.display == 'none') {
showid.style.display = '';
} else {
showid.style.display='none';
}}
</script>
<TABLE WIDTH="100%" bgcolor=#000000 height=25>
<tr>
<script>
var member = "admin";
if (member=="admin") {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('favs')>Favourites</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('settings')>Settings</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('profile')>Profile</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Search</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>View Members</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>PM Admin</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Post a Code</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('admin')>Admin</a></div></td>";
document.write(""+table+"");
} else if (member=="member") {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Favourites</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Settings</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Profile</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Search</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>View Members</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>PM Admin</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Post a Code</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Home</div></td>";
document.write(""+table+"");
} else {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=100%><div align=center valign=top>Welcome Guest, Please <a href=index/php?action=login>Login</a> Or <a href=index.php?action=register>Register</a></div></td>";
document.write(""+table+"");
}
</script>
</tr>
<tr>
<td colspan=10 class=windowbg height=20>
<div id="admin" style="display:none"><table width=100%><tr><td width=150>Admin Options: </td><td><marquee>Edit a Page -- Edit a Member -- View Members -- Delete a Member -- Ban a Member</marquee></td><td width=150><div align=right><a href=javascript:minus('admin')>Close Panel</a></div></td></tr></table></div>
<div id="favs" style="display:none"><table width=100%><tr><td width=150>Favourties: </td><td><marquee>View Favourite Pages -- Add A Favourite Page -- Remove A Favourite Page -- Edit A Favourite Page</marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
<div id="profile" style="display:none"><table width=100%><tr><td width=150>Profile: </td><td><marquee> Edit -- View </marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
<div id="settings" style="display:none"><table width=100%><tr><td width=150>Settings: </td><td><marquee> Language -- Browser </marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
</td></tr>
</table>
</CENTER>
</TD>
i was wodnering for a link in here such as:
<a href=javascript:minus('admin')>Close Panel</a>
how can i set that to remove it ?
the javascript for making it appear is there :)
<TD COLSPAN=3>
<CENTER>
<script>
function plus(whichid) {
var showid=document.getElementById(whichid);
if (showid.style.display == 'none') {
showid.style.display = '';
} else {
showid.style.display='none';
}}
</script>
<TABLE WIDTH="100%" bgcolor=#000000 height=25>
<tr>
<script>
var member = "admin";
if (member=="admin") {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('favs')>Favourites</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('settings')>Settings</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('profile')>Profile</a></div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Search</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>View Members</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>PM Admin</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Post a Code</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top><a href=javascript:plus('admin')>Admin</a></div></td>";
document.write(""+table+"");
} else if (member=="member") {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Favourites</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Settings</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Profile</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Search</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>View Members</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>PM Admin</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Post a Code</div></td>";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=10%><div align=center valign=top>Home</div></td>";
document.write(""+table+"");
} else {
table = "";
table+= "<td class=windowbg onMouseOver='this.style.backgroundColor = '444444'; style.cursor='hand'' onMouseOut='this.style.backgroundColor ='';' width=100%><div align=center valign=top>Welcome Guest, Please <a href=index/php?action=login>Login</a> Or <a href=index.php?action=register>Register</a></div></td>";
document.write(""+table+"");
}
</script>
</tr>
<tr>
<td colspan=10 class=windowbg height=20>
<div id="admin" style="display:none"><table width=100%><tr><td width=150>Admin Options: </td><td><marquee>Edit a Page -- Edit a Member -- View Members -- Delete a Member -- Ban a Member</marquee></td><td width=150><div align=right><a href=javascript:minus('admin')>Close Panel</a></div></td></tr></table></div>
<div id="favs" style="display:none"><table width=100%><tr><td width=150>Favourties: </td><td><marquee>View Favourite Pages -- Add A Favourite Page -- Remove A Favourite Page -- Edit A Favourite Page</marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
<div id="profile" style="display:none"><table width=100%><tr><td width=150>Profile: </td><td><marquee> Edit -- View </marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
<div id="settings" style="display:none"><table width=100%><tr><td width=150>Settings: </td><td><marquee> Language -- Browser </marquee></td><td width=150><div align=right><a href=# onmousedown=close()>Close Panel</a></div></td></tr></table></div>
</td></tr>
</table>
</CENTER>
</TD>