Script Spoiler-Welcome e OpSystem, 3 script per il vostro sito

« Older   Newer »
  Share  
AuraRinoa
view post Posted on 7/9/2009, 11:38 by: AuraRinoa




Una domanda a proposito dello spoiler....

Io qui: http://www.aurarinoa.it/cosplay/links.php
Ho usato un codice simile.. ma non funziona con Explorer, come potrei fixarlo?

CITAZIONE
<script language="javascript">
<!--

var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//-->
</script>

CITAZIONE
<a href="#" onclick="showhide('div1');">< a href=" http://www.aurarinoa.it/cosplay/immagini/show-hide.gif ">< / a >

 
Top
5 replies since 5/9/2009, 09:26   105 views
  Share