Results 1 to 7 of 7

Thread: DIV in ASP Pages

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Red face

    Hi Folks (Hi Tom)
    What is DIV and how can i use it ?

    Thanks
    Efrat

  2. #2
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    DIV is cool

    DIV is a lot like SPAN and P.

    I use DIV when i'm doing DHTML.

    The reason is that you can change the contents in script. You can also change the style.

    example:
    Code:
    <SCRIPT language=vbscript>
      Sub Mouse_Over()
        window.sample.style.background = "blue"
        window.sample.style.border = "solid 1px red"
      End Sub
    
      Sub Mouse_Out()
        window.sample.style.background = "red"
        window.sample.style.border = "solid 1px blue"
      End Sub
    </SCRIPT>
    
    <DIV id=sample style="background: red; border: solid 1px blue" onmouseover="Mouse_Over" onmouseout="Mouse_Out">
      <FONT face=verdana size=1 color=white>
        <B>
          Hello World!
        </B>
      </FONT>
    </DIV>
    Check it out. I've attached a small sample that could shows some uses of DIV. It's a bit messy since i didn't really write it to give out.

    PS. You must rename the file to htm

    r0ach™
    Don't forget to rate the post

  3. #3
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Ooops!

    Sorry. Here's the file...
    Attached Files Attached Files

    r0ach™
    Don't forget to rate the post

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Thumbs up Thank you

    Thank you very much .

  5. #5
    New Member
    Join Date
    Feb 2001
    Posts
    15

    Wink DIV Absolute is eveing cooler

    Just to say that if you use the absolute property of the DIV tag you can make things really fly !!!


    Look it up in MSDN sailor !
    brock loves to code

  6. #6
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722
    brock landers: If you look at the attached file, you'll see that I've used DIV absolute.

    r0ach™
    Don't forget to rate the post

  7. #7
    New Member
    Join Date
    Feb 2001
    Posts
    15

    Wink Sorry Roachey !

    Sorry me old mucker

    Didn't check our your wares - tidy ......
    brock loves to code

Posting Permissions

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



Click Here to Expand Forum to Full Width