Problem til et DYNAPI
Hejsa,http://www.dansteinman.com/dynapi/docs/examples/scrollwindow/demo-ext-multi.html
Jeg kan ikke få ovenstående til at virke i IE5.5 - kun i NS4.7. Endvidere virker det heller ikke på ovennævnte adresse.
Når jeg kører dette script, ligger det ikke i nogen frame - jeg starter bare en blank side op i Dreamweaver, paster koden ind og retter stien ind til de downloadede *.js filer. (skulle måske også lige nævne at jeg har ca. en uges erfaring i javascript/DHTML = det tidsrum jeg har været medlem af Eksperten.dk. Så hvis jeg mangler at beskrive nogle forudsætninger, så spørg endelig)
Her er koden i hoveddokumentet:
<html>
<head>
<title>DynAPI Examples - ScrollWindow Demo [external multiple blocks]</title>
<script language=\"JavaScript\" src=\"../../../js/dynlayer.js\"></script>
<script language=\"JavaScript\" src=\"../../../js/scrollwindow.js\"></script>
<script language=\"JavaScript\">
<!--
onload=init
function init() {
// this file contains the multiple blocks
mywindow.load(\'text-ext-multi.html\')
}
mywindow = new ScrollWindow(200,50,250,200,null,\'mywin\')
mywindow.inlineBlocks = 4
mywindow.build()
writeCSS(
mywindow.css
)
//-->
</script>
</head>
<body bgcolor=\"#ffffff\">
<a href=\"java script://\" onMouseDown=\"mywindow.up(); return false\" onMouseUp=\"mywindow.stop()\" onMouseOut=\"mywindow.stop()\">up</a>
<br><a href=\"java script://\" onMouseDown=\"mywindow.down(); return false\" onMouseUp=\"mywindow.stop()\" onMouseOut=\"mywindow.stop()\">down</a>
<p><a href=\"java script:mywindow.showBlock(0)\">show block 0</a>
<br><a href=\"java script:mywindow.showBlock(1)\">show block 1</a>
<br><a href=\"java script:mywindow.showBlock(2)\">show block 2</a>
<br><a href=\"java script:mywindow.showBlock(3)\">show block 3</a>
<script language=\"JavaScript\">
document.write(mywindow.div)
</script>
</body>
</html>
<html>
<head>
<title>DynAPI Examples - ScrollWindow Demo [external multiple blocks]</title>
<script language=\"JavaScript\" src=\"../../../js/dynlayer.js\"></script>
<script language=\"JavaScript\" src=\"../../../js/scrollwindow.js\"></script>
<script language=\"JavaScript\">
<!--
onload=init
function init() {
// this file contains the multiple blocks
mywindow.load(\'text-ext-multi.html\')
}
mywindow = new ScrollWindow(200,50,250,200,null,\'mywin\')
mywindow.inlineBlocks = 4
mywindow.build()
writeCSS(
mywindow.css
)
//-->
</script>
</head>
<body bgcolor=\"#ffffff\">
<a href=\"java script://\" onMouseDown=\"mywindow.up(); return false\" onMouseUp=\"mywindow.stop()\" onMouseOut=\"mywindow.stop()\">up</a>
<br><a href=\"java script://\" onMouseDown=\"mywindow.down(); return false\" onMouseUp=\"mywindow.stop()\" onMouseOut=\"mywindow.stop()\">down</a>
<p><a href=\"java script:mywindow.showBlock(0)\">show block 0</a>
<br><a href=\"java script:mywindow.showBlock(1)\">show block 1</a>
<br><a href=\"java script:mywindow.showBlock(2)\">show block 2</a>
<br><a href=\"java script:mywindow.showBlock(3)\">show block 3</a>
<script language=\"JavaScript\">
document.write(mywindow.div)
</script>
</body>
</html>
Mvh P