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

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>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.