Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    19
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Help with my style code

    hello every one,

    Code:
     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!!!
    Last edited by nikku; 02-14-2008 at 10:18 AM. Reason: Proper tags

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Where is your html and javascript (and tree)?
    Also use [code] ()to wrap your codeswhile posting here.
    Last edited by abduraooft; 02-14-2008 at 07:12 AM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    19
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    Where is your html and javascript (and tree)?
    Also use [code] ()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!!!

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by nikku View Post
    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

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    or use the # in the header of the page to insert the code

    Much easier.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #6
    New Coder
    Join Date
    Feb 2008
    Posts
    19
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by nikku View Post
    hello every one,

    Code:
     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!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •