Script Help., Disabling a DIV via href |
Script Help., Disabling a DIV via href |
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?
|
|
|
|
![]() |
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 |
|
|
|
SJ_Kim Script Help. Jan 4 2005, 09:58 PM
largosama can we see your xanga Jan 4 2005, 10:19 PM
SJ_Kim It's at here. Notice that when you press ... Jan 4 2005, 10:25 PM
largosama you can put the chatterbox code in the javascript ... Jan 4 2005, 10:28 PM
SJ_Kim I know that... but I've used a script to disab... Jan 4 2005, 10:29 PM
SJ_Kim I'm afraid I need it to execute immediately wh... Jan 4 2005, 10:37 PM
largosama eh oh well I"m not that competent in javascri... Jan 4 2005, 10:40 PM![]() ![]() |