Email conversation
From | Abele Ferro |
To | Me |
Subject | Problems with collapsibleList and draglayer |
Date | 18 December 2003 16:04 |
Hi
Pls excuse my poor english , I am from Italy and I am a self learning from
technical books
I'm using your javascript tutor and library now to practice and then to use
in my web site (of coarse you will have a link on my site).
I use win98 Second Edition and IE6.
My editor in 1stPage from Evrsoft
I have a probleme with the collapsibleList example that I download with its
images from
http://www.howtocreate.co.uk/jslibs/htmlhigh/collapsibleList.html
I've created the collapsibleList.js file including the text from
*********
And here's the actual code
********
.......
.......
to the end
as you axplaned I write in html file Head :
<Script src="collapsibleList.js" type="text/javascript"
language="javascript1.2"></script>
My html text is
<body>
Start
<script type="text/javascript" language="javascript1.2"><!--
----
---
all your text without the text now copied in .js file
----
---
End
</body>
I try to fill your Mylist example
I didn't understand wery well how to prepare my own list but I used your
example an the idea is to practice whith that
But I can't have any result. I tested it form inside the editor and
directly on the IE6 browser.
I see only the text
Start
classList is defined using: var classList = .....and the followin 4
following lines
---
--
End
now I've included the classList lines in a comment and I have no more text
on the screen exept
Start
End
can you pls help me?
I've tested other examples to see if my pc is working with scripts and
they are all correct working
By the way, I have found that in this file there are two missed lines
http://www.howtocreate.co.uk/jslibs/htmlhigh/draglayer.html
I mark them with *****
To create a dragable layer put:
****** <script type="text/javascript" language="javascript1.2"><!--
createDragableLayer(
-
cut
-
);
***** //--></script>
thanks for your help ad have an Happy new Year
click pls http://xxx.xxxxxxxxx.xxx/xxxxxx.xxx
Abele Ferro
From | Me |
To | Abele Ferro |
Subject | Re: Problems with collapsibleList and draglayer |
Date | 19 December 2003 11:03 |
Abele,
> Pls excuse my poor english
Your English is better than my Italian ...
> of coarse you will have a link on my site
thankyou :)
> I've created the collapsibleList.js file including the text from
> *********
> And here's the actual code
> ********
Please leave ALL comments in the source files. See:
http://translate.google.com/translate?hl=it&sl=en&u=http://www.
howtocreate.co.uk/jslibs/termsOfUse.html
I think that you may have misunderstood my English in the downloadable
files. Here is an example:
<html>
<head>
<style type="text/css"><!--
.lev0link { color: #00f; }
.lev0plain { color: #f00; }
.lev1link { color: #099; }
.lev1plain { color: #090; }
.lev2link { color: #909; }
.lev2plain { color: #000; }
--></style>
<script type="text/javascript" language="javascript1.2" src="collapsibleList.js"></script>
<script type="text/javascript" language="javascript1.2"><!--
var clsLst = [
['lev0plain','lev0link'],
['lev1plain','lev1link'],
['lev2plain','lev2link']
];
var myList = new collapsibleList([17,21,'t.gif','l.gif','i.gif','e.gif'],
[25,21,'f.gif','b.gif','p.gif','m.gif'],true,clsLst);
//then create branches
myList.sub[0] = new sub('List item 1');
myList.sub[0].sub[0] = new sub('List item 1.1');
myList.sub[0].sub[0].sub[0] = new sub('List item 1.1.1');
myList.sub[0].sub[1] = new sub('List item 1.2');
myList.sub[0].sub[1].sub[0] = new sub('List item 1.2.1');
myList.sub[0].sub[1].sub[1] = new sub('List item 1.2.2');
myList.sub[0].sub[2] = new sub('List item 1.3');
myList.sub[0].sub[2].sub[0] = new sub('List item 1.3.1');
myList.sub[0].sub[3] = new sub('List item 1.4');
myList.sub[0].sub[4] = new sub('List item 1.5');
myList.sub[1] = new sub('List item 2');
myList.sub[2] = new sub('List item 3');
myList.sub[2].sub[0] = new sub('List item 3.1');
myList.sub[2].sub[0].sub[0] = new sub('List item 3.1.1');
//--></script>
</head>
<body>
<script type="text/javascript" language="javascript"><!--
createList(myList);
//--></script>
</body>
</html>
does this help?
Tarquin - author of http://www.howtocreate.co.uk
From | Abele Ferro |
To | Me |
Subject | Re: Problems with collapsibleList and draglayer |
Date | 19 December 2003 13:51 |
yes now it is perfect
thanks a lot
Abele