944,110 Members | Top Members by Rank

Ad:
Nov 4th, 2006
0

Javascript menu blocked by browser what can I do for alternative

Expand Post »
Hi Y'all

Have a javascript menu, which doesnt appear on the browser when the block is on, so just empty space. Is it possible to have some alternative incase the user doesn't choose to disable their browser block?

That is have both the javascript and alternative available if 1 blocked other appears??

Best regards

Catherine
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
cath120 is offline Offline
32 posts
since Apr 2005
Nov 10th, 2006
0

Re: Javascript menu blocked by browser what can I do for alternative

by "the block" do you mean the "don't want javascript" block? do this:

<script>
javascript menu generating thing
</script>
<noscript>
html alternative
</noscript>

otherwise;have an element:

<div id="javascript_please_hide_me">
put your html alternative here
</div>
<script type="text/javascript">
document.getElementById("javascript_please_hide_me").style.display="none";
</script>
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: BLank in IE, Good in FF, Why?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Creating CSS Psuedoclasses?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC