PDA

View Full Version : Help with my style code



nikku
02-13-2008, 10:18 AM
hello every one,




body{
font: 10pt Verdana,sans-serif;
color: navy;
}
.branch{
cursor: pointer;
cursor: hand;
display: block;
}

.leaf{
display: none;
margin-left: 16px;
}
a{
text-decoration: none;
}
a:hover{
text-decoration: underline;
}



This is my style sheet.

I am trying to generate a tree structure with this code.
After my tree is coming up, my aim is to refresh the content of the tree and for that i am using setInterval() function.

The problem i am facing is my style sheet is not working once the page refreshes and my script hanges. Any suggestion.

Cheers!!!

abduraooft
02-13-2008, 10:24 AM
Where is your html and javascript (and tree)?
Also use [code] (http://www.codingforums.com/images/editor/code.gif)to wrap your codeswhile posting here.

nikku
02-14-2008, 05:22 AM
Where is your html and javascript (and tree)?
Also use [code] (http://www.codingforums.com/images/editor/code.gif)to wrap your codes
Thansk for the reply,

Actually my entire code is in the same file i have not modularised it yet.

And the style sheet is in the <head> part of my document. Is it that when i call setInterval() for my javascript function my style sheet is not always loaded.

Any suggestions on how to go about this.

Cheers!!!

oesxyl
02-14-2008, 05:29 AM
Thansk for the reply,

Actually my entire code is in the same file i have not modularised it yet.

And the style sheet is in the <head> part of my document. Is it that when i call setInterval() for my javascript function my style sheet is not always loaded.

Any suggestions on how to go about this.

Cheers!!!

I guess you missunderstand what abduraooft say about, :):


Also use [code] ()to wrap your codes


when you post code on forum use the apropriate tags, [ code] - [ /code] and insert your code between this two tags.
you can edit your post and use this tags, it's more easy to read.

best regards

effpeetee
02-14-2008, 09:15 AM
or use the # in the header of the page to insert the code

Much easier.

Frank

nikku
02-14-2008, 10:23 AM
hello every one,




body{
font: 10pt Verdana,sans-serif;
color: navy;
}
.branch{
cursor: pointer;
cursor: hand;
display: block;
}

.leaf{
display: none;
margin-left: 16px;
}
a{
text-decoration: none;
}
a:hover{
text-decoration: underline;
}



This is my style sheet.

I am trying to generate a tree structure with this code.
After my tree is coming up, my aim is to refresh the content of the tree and for that i am using setInterval() function.

The problem i am facing is my style sheet is not working once the page refreshes and my script hanges. Any suggestion.

Cheers!!!
I guess i have put the code properly.

My aim is to load the style sheet when page across page reloads.

Any suggestions on how to go about.

Cheers!!!