PDA

Click to See Complete Forum and Search --> : DIV in ASP Pages


efrat
Feb 6th, 2001, 06:39 AM
Hi Folks (Hi Tom)
What is DIV and how can i use it ?

Thanks
Efrat

r0ach
Feb 6th, 2001, 07:06 AM
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:

<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
Feb 6th, 2001, 07:09 AM
Sorry. Here's the file... :D

efrat
Feb 6th, 2001, 07:32 AM
Thank you very much .

brock landers
Feb 6th, 2001, 10:40 AM
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 !

r0ach
Feb 6th, 2001, 11:05 AM
brock landers: If you look at the attached file, you'll see that I've used DIV absolute. :rolleyes:

brock landers
Feb 6th, 2001, 11:19 AM
Sorry me old mucker

Didn't check our your wares - tidy ......