|
-
Feb 6th, 2001, 07:39 AM
#1
Thread Starter
Addicted Member
Hi Folks (Hi Tom)
What is DIV and how can i use it ?
Thanks
Efrat
-
Feb 6th, 2001, 08:06 AM
#2
Fanatic Member
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
-
Feb 6th, 2001, 08:09 AM
#3
Fanatic Member
Ooops!
Sorry. Here's the file...
r0ach™
Don't forget to rate the post
-
Feb 6th, 2001, 08:32 AM
#4
Thread Starter
Addicted Member
Thank you
-
Feb 6th, 2001, 11:40 AM
#5
New Member
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 !
-
Feb 6th, 2001, 12:05 PM
#6
Fanatic Member
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
-
Feb 6th, 2001, 12:19 PM
#7
New Member
Sorry Roachey !
Sorry me old mucker
Didn't check our your wares - tidy ......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|