Avatar billede pacifico Nybegynder
10. november 2000 - 15:29 Der er 3 kommentarer og
1 løsning

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
Avatar billede pacifico Nybegynder
10. november 2000 - 15:31 #1
Sorry. Pastede hoveddokumentet ind 2 gange. Her er koden i det dokument der hentes

<html>
<head>
<title>external page, with multiple inline blocks</title>
</head>

<body onLoad=\"parent.mywindow.activate()\">

<div id=\"mywinBlock0\">
<p>This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0.
<p>This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0.
<p>This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0.
<p>This is block 0. This is block 0. This is block 0. This is block 0. This is block 0. This is block 0.
</div>

<div id=\"mywinBlock1\">
<p>This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1.
<p>This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1. This is block 1
</div>

<div id=\"mywinBlock2\">
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2.
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2.
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2.
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2.
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2.
<p>This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2. This is block 2
</div>

<div id=\"mywinBlock3\">
<p>This is block 3. This is block 3. This is block 3. This is block 3. This is block 3. This is block 3.
</div>

</body>
</html>
Avatar billede pacifico Nybegynder
12. november 2000 - 13:01 #2
Glem det?. Har løst problemet...
Avatar billede pacifico Nybegynder
13. november 2000 - 10:33 #3
lukker
Avatar billede convinius Nybegynder
17. april 2001 - 22:56 #4
hahahah hvor er du cool. du laver et spørgsmål, så lukker du det fordi du selv har løst det.
Men hvem er du ......jeg ved kun at du har relation til rapanden.

Det har jeg også.....
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



Seneste spørgsmål Seneste aktivitet
I dag 14:04 Pixeline cd’er til PC Af Mathilde i Windows
I dag 01:14 Windows 10 - IIS 10 Af bsn i Windows
I går 20:39 Boot fra USB Af poulmadsen i Windows
I går 11:43 Gmail-ikon på skrivebordet Win 10 Af ErikHg i Fri debat
I går 09:22 Lopslag Af Luffe i Excel