Aller au contenu

SVP est ce que ca marche


djp1988

Sujets conseillés

Merci

Je pense que moi, je vais exploser avec IE ! Quelqu'un peut me dire ce qui n'est pas compatible avec IE dans mon javascript ?

mon javascript est:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
function showdiv(div, link) {
divs = document.getElementById('features').getElementsByTagName('div');
links = document.getElementById('links').getElementsByTagName('a');
for (i = 0; i < divs.length; i++) {
divs[i].style.display = "none";
links[i].style.background = "#FFFFFF";
}
document.getElementById(div).style.display = "block";
link.style.background = "#99FFCC";
}
//--><!]]>
</script>

mon HTML est:

CODE
<div id="blockoffeatures">

<p id="links">

<a href="java script:void(0)" onclick="showdiv('LatestPhoto', this)" style="background:#99FFCC">Latest Photo</a>

<a href="java script:void(0)" onclick="showdiv('LatestObs', this)" style="background:#FFFFFF">Latest Obs.</a>

<a href="java script:void(0)" onclick="showdiv('LatestUpdates', this)" style="background:#FFFFFF">Latest Updates</a>

<a href="java script:void(0)" onclick="showdiv('News', this)" style="background:#FFFFFF">Herps in the News</a>

<a href="java script:void(0)" onclick="showdiv('Stats', this)" style="background:#FFFFFF">Site Statistics</a>

</p>

<div id="features">

<div id="LatestPhoto" style="display:block;">

<h4 align="center">Latest Photo </h4>

<p align="center"> <img src="Resources-folder/snakes/IMG_8615.jpg" alt="© Daniel Phillips" width="400" height="240" border="1" /><br />

<span class="innerColTxt"><i><font color="#999999"> Malpolon monspessulanus - Male specimen, very scared - © Daniel Phillips </font></i></span></p>

<p align="justify" class="innerColTxt"><strong>Species</strong>: <em>Malpolon monspessulanus </em></p>

<p align="justify" class="innerColTxt"><strong>Date</strong>: 22nd February 2008 </p>

<p align="justify" class="innerColTxt"><strong>Locality</strong>: North of Paziols (Aude - 11)</p>

</div>

<div id="LatestObs" style="display:none;">

<h4 align="center">Latest Observations</h4>

<p class="innerColTxt"><strong>22nd Feb. </strong> : Malpolon monspessulanus, Psammodromus algirus, Pelophylax perezi</p>

<p class="innerColTxt"><strong>21st Feb.</strong> : Hyla meridionalis</p>

<p class="innerColTxt"><strong>19th Jan.</strong> : Tarentola mauritanica, Bufo calamita </p>

<p class="innerColTxt"><strong>18th Jan.</strong> : Bufo bufo </p>

<p class="innerColTxt"><strong>16th Jan.</strong> : Tarentola mauritanica </p>

<p class="innerColTxt"><strong>11th Jan.</strong> : Discoglossus pictus <em>DOR</em>, Bufo bufo <em>DOR</em>, Bufo calamita <em>DOR</em></p>

</div>

<div id="LatestUpdates" style="display:none;">

<h4 align="center">Latest Web Site Updates </h4>

<p align="justify" class="innerColTxt"><strong>23rd Feb. : </strong>New homepage design, I have put the search bar in the menu for handy access, I have put the Sources, Site Info., Books and Links into a drop down menu over the "other" link and grouped all the usually features in this wonderful JavaScript powered area. <br />

The Latest photo page has been scrapped as the photo will appear larger here and set to display be default. This feature may not work if you have not activated JavaScript, but in that case you can't possibly be even reading this, because you have clicked to see it ! <br />

Let me know what you think of the new layout, but all in all I think it is better, with more user interaction needed.</p>

<p class="innerColTxt"><strong>22nd Feb. </strong> : New <a href="local_obs/2008-herp-journal-feb.php">Local Observation</a>! </p>

</div>

<div id="News" style="display:none;">

<h4 align="center">Herps in the News</h4>

<h1 align="center">The corps of a Leatherback turtle found on a beach in Western France </h1>

<p align="justify" class="style1052 style40"><img src="Resources-folder/TL.jpg" alt="Leatherback turtle" width="190" height="280" hspace="5" border="1" align="right" />The corps of a large Leatherback turtle was found on the beach of Sables-d'Olonne, this morning (23 january 2008) at approx. 9:30 by passer biers. The corps which was in decomposition was around a metre long. The Leatherback turtle is the largest living turtle on the planet.</p>

</div>

<div id="Stats" style="display:none;">

<h4 align="center">Site Statistics</h4>

<p align="center"><a href=&quot;http://www3.clustrmaps.com/counter/maps.php?url=http://www.herpfrance.com" id="clustrMapsLink"> <img src=&quot;http://www3.clustrmaps.com/counter/index2.php?url=http://www.herpfrance.com" alt="Locations of visitors to this page" border="1" id="clustrMapsImg" title="Locations of visitors to this page"/></a></p>

<p align="center" class="innerColTxt">Approx. <strong>104833</strong> unique visits between 2005 and 2007 ! <br />

Thank you for your interest </p>

<p align="center" class="innerColTxt">There are currently over <strong>400</strong> photos for <strong>75</strong> species & <strong>20</strong> videos plus over <strong>20</strong> amphibian calls </p>

</div>

</div>

</div>

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...