Help - Search - Members - Calendar
Full Version: div helllp
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
fatuglyguy
can some smart person please tell me how to put this code in a div so i can move it around where i want it???? wink.gif

CODE
<!-- begin code provided by createblog.com -->
<!-- begin code provided by createblog.com -->
<CENTER><FONT size:10pt font ms trebuchet family:>* <A onmouseover=showit(0)
href="http://www.xanga.com/">xanga</A> * <A onmouseover=showit(1)
href="http://www.xanga.com/private/home.aspx">controls</A> * <A
onmouseover=showit(2) href="http://www.xanga.com/Oomi12acleoO">gina</B></A>
* <A onmouseover=showit(3) href="http://www.xanga.com/blogrings">blogringz</A> *
<BR><ILAYER bgColor="#" name="dep1" height="32" width="400"><LAYER name="dep2"
height="30" width="400"></LAYER></ILAYER>
<DIV id=describe onmouseover=clear_delayhide()
style="WIDTH: 500px; HEIGHT: 10px" onmouseout=resetit(event)></DIV>
<script language=JavaScript1.2>

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

http://premium.xanga.com/Private/Premium/xtools.asp?reload=/private/home.aspx

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

submenu[0]='<font size="1" face="trebuchet ms">- <a href="http://www.xanga.com/signin.asp">sign in</a> - <a href="http://www.xanga.com/logout.asp">log out</a> - <a href="http://www.xanga.com/register.asp">membership</a> -</font>'

submenu[1]='<font size="1" face="trebuchet ms">- <a href="http://www.xanga.com/CLAF/default.asp">look&feel</a> - <a href="http://xanga.com/private/subscriptions.aspx">subscriptionz</a> - <a href="http://xanga.com/private/feedback.aspx">feedback logz</a> - </font>'

submenu[2]='<font size="1" face="trebuchet ms">- <a href="http://www.xanga.com/Private/SubscribeTo.aspx?user=Oomi12acleoO">subscribe now</a> - <a href="http://www.xanga.com/guestbook.asp?user=Oomi12acleoO">sign g-book</a> -</font>'

submenu[3]='<font size="1" face="trebuchet ms">- <a href="http://www.xanga.com/blogrings/blogring.asp?id=22373">* FAITH * HOPE * LOVE *</a> - <a href="http://www.xanga.com/blogrings/blogring.asp?id=12260">* kOrEaN pRyDe *</a> - <a href="http://www.xanga.com/blogrings/blogring.asp?id=14975">KOREAN CHRISTIANS!</a> - <a href="http://www.xanga.com/blogrings/blogring.asp?id=126866">Yosemite Summer Camps</a> -</font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

</SCRIPT>

<!-- end code provided by createblog.com -->
<!-- end code provided by createblog.com -->
swe3txprincesz
isnt dere a tutorial on this?
fatuglyguy
yes but for some reason it doesn't work when i put the divs around the whole code so i don't know where im supposed to put them (its for the submenus thing)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.