Javascript menu blocked by browser what can I do for alternative

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Apr 2005
Posts: 32
Reputation: cath120 is an unknown quantity at this point 
Solved Threads: 0
cath120 cath120 is offline Offline
Light Poster

Javascript menu blocked by browser what can I do for alternative

 
0
  #1
Nov 4th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

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

 
0
  #2
Nov 10th, 2006
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>
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 3079 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC