Log In · Register

 
Script Help., Disabling a DIV via href
SJ_Kim
post Jan 4 2005, 09:58 PM
Post #1


Newbie
*

Group: Member
Posts: 9
Joined: Jan 2005
Member No: 78,293



I want a script that makes my floating chatterbox (in a DIV tag) to disappear when the URL location is not the home page (xanga.com/home.aspx?users=[username]) because it screws up the comments page. Can anybody help me?
 
 
Start new topic
Replies
largosama
post Jan 4 2005, 10:35 PM
Post #2


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



hmmmm try this

CODE
<script lanugage="JavaScript">

function showit (whichMenu,whatState){

if (document.getElementById)
{document.getElementById(whichMenu).style.visibility = whatState; }

else {document[whichMenu].visibility = whatState;}

}

</script>


into your website stats

and
CODE
<a href="javascript:showit('flooble','hidden')">Off</a>

as the link that hides the box

I dunno I sorta wrote it for my own site so might not work with yours
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: