ok, here is my javascript. Right now its in the page where it should be and its displayed in an iframe but I want to make it an external .js file. Maybe somebody knows how I do it ...
Code:
<script language="JavaScript1.2">
var marqueewidth=300
var marqueeheight=250
var speed=2
var marqueecontents='27/28 Sept: <a href="../seminare/hackl_pem.html">Hackl, Persönlicher Erfolg, Linz</a><br>27/28 Sept: <a href="../seminare/reichel1.html">Reichel, Reden II, Nürnberg</a><br>30 Sept/ 01 Okt: <a href="../seminare/kobjoll.html">Kobjoll, Europ. Quality Award, Nürnberg</a><br>02/03 Okt: <a href="../seminare/kobjoll.html">Kobjoll, Europ. Quality Award, Nürnberg<br></a>05 Okt: <a href="../seminare/woess.html">Woess, Vortrags-Coaching, Wien</a><br>10/11 Okt: <a href="woess_coaching.html">Woess, Vortrags-Coaching, Wien</a><br>10/11/12 Okt: <a href="../seminare/reichel1.html">Reichel, Reden I, Nürnberg</a><br>19/20 Okt: <a href="../seminare/spitzbartwessinghage.html">Spitzbart/Wessinghage, Fit Forever, Nürnberg</a><br>22/23 Okt: <a href="../seminare/reichel1.html">Reichel, Verhandeln, Nürnberg</a><br>24/25/26 Okt: <a href="../seminare/reichel1.html">Reichel, Reden I, Nürnberg</a><br>25/26/27 Okt: <a href="../seminare/zen.html">Polenski, Zen, Altenmarkt, Sbg</a><br>31 Okt/01 Nov: <a href="../seminare/mccarthy.html">Mellon, Wealth Mastery, Frankfurt</a><br>07/08/09 Nov: <a href="../seminare/reichel1.html">Reichel, Reden I, Nürnberg</a><br>7/8/9/10 Nov: <a href="../seminare/robbins1.html">The Power to Influence</a><br>11/12 Nov: <a href="../seminare/reichel1.html">Reichel, Verhandeln, Nürnberg</a><br>13/14 Nov: <a href="../seminare/reichel1.html">Reichel, Sekretärinnen, Nürnberg<br></a>14/15 Nov: <a href="../seminare/woess.html">Woess/Koller, Vortrag und Stimme, Wien</a><br>15/16 Nov: <a href="../seminare/reichel1.html">Reichel, Reden II, Nürnberg</a><br>21/22/23 Nov: <a href="../seminare/reichel1.html">Reichel, Reden I, Nürnberg</a><br>22/23/24 Nov: <a href="../seminare/zen.html">Polenski, Zen, Niederkleveez, Schleswig-H<br></a>23/24 Nov: <a href="../seminare/robbins1.html">Leadership and Effective Management</a>02/03 Dez: <a href="../seminare/christiani_molcho.html">Christiani/Molcho, Verkauf/Körperspr, Linz</a><br>03/04 Dez: <a href="../seminare/christiani_molcho.html">Christiani/Molcho, Verkauf/Körperspr, München</a><br>09/10/11 Dez: <a href="../seminare/reichel1.html">Reichel, Reden I, Nürnberg</a><br>15 Jan: <a href="../seminare/woess_selbstpraesentation.html">Woess, Souveräne Selbstpräsentation, Wien</a><br>20/21/22/23 Juni 03: <a href="../seminare/robbins1.html">Unleash the Power Within</a>'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(marqueecontents)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marque eheight
scrollit()
}
}
window.onload=regenerate2
</script>
// and here is the iframe:
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>
</ilayer>
I just want to display the var marqueecontents, it´d be best if I could write every entry/link in marqueecontents seperately/make brakes between them.
I hope somebody can help me.