[GetElementById]

-= Ohne Beispiel =-

Dieser Codeschnipsel simuliert, in Scripte eingesetzt, bei älteren Browsern das getElementById- Objekt.

[Code]

[an den Beginn Ihres Scripts]

<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://www.nightfire.ch/java/
Created by: Ultimater :: http://ultimiacian.tripod.com/
Add this snippet to the very beginning of your script. */


if(!document.getElementById){
if(document.all)
document.getElementById=function(){
if(typeof document.all[arguments[0]]!="undefined")
return document.all[arguments[0]]
else
return null
}
else if(document.layers)
document.getElementById=function(){
if(typeof document[arguments[0]]!="undefined")
return document[arguments[0]]
else
return null
}
}
// End -->
</script>

[Autor]

Ultimater

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 652