PDA

View Full Version : Drop down menus....clueless



deb
02-10-2008, 03:03 AM
Can anyone help me get out of a mess?? I've messed up drop down menus that were working fine, don't know what I did and I have NO experience.
Message:
The requested URL /default.htm was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

ddadmin
02-10-2008, 03:06 AM
Hmm we need a lot more info on that, such as the script you're using, a URL to the problem page if possible etc.

deb
02-10-2008, 03:11 AM
Bear with me please, I am not a web person. The site is www.talktyme.com and I came here as I saw this somewhere on the backend (it's long!)

<link rel="stylesheet" href="css.css" /> <!--[if IE]>
<link rel="stylesheet" href="hack.css" />
<script type="text/javascript">
window.mlrunShim = true;
</script>
<![endif]--> <script type="text/javascript" src="js.js">

/***********************************************
* Blm Multi-level Effect menu- By Brady Mulhollem at http://www.bradyontheweb.com/
* Script featured on DynamicDrive.com
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and more
***********************************************/

</script><style type="text/css">

#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}

#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}

#dropmenudiv a:hover{ /*hover background color*/
background-color: yellow;
}

</style> <script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/


//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=about">About Us</a>'
menu1[1]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=departments">Contact Us</a>'
menu1[2]='<a href="http://www.talktyme.com/index.php?target=topics&topic_id=43">Press</a>'
menu1[3]='<a href="http://www.talktyme.com/index.php?target=news">Talktyme News</a>'
menu1[4]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=careers">Careers</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=creditapllications">Credit App</a>'
menu2[1]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=faxorderform">Fax Order Form</a>'
menu2[2]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=rma">Warranty RMA</a>'
menu2[3]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=shippingterms">Shipping Terms</a>'
menu2[4]='<a href="http://www.talktyme.com/index.php?target=pages&page_id=Mechandising">Merchandising Support</a>'
menu2[5]='<a href="http://www.talktyme.com/index.php?target=topics&topic_id=9">eFlyers</a>'
menu2[6]='<a href="http://www.talktyme.com/index.php?target=forms&name=request_installation">Request Installation</a>'

//Contents for menu 4,
var menu4=new Array()
menu4[0]='<a href="">By Brand</a>'
menu4[1]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=24">AdvanceTec</a>'
menu4[2]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=9">Blackberry</a>'
menu4[3]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=22">BlueAnt</a>'
menu4[4]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=13">Jabra</a>'
menu4[6]='<a
href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=15">Kyocera</a>'
menu4[7]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=8">LG</a>'
menu4[8]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=1">Motorola</a>'
menu4[9]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=2">Nokia</a>'
menu4[10]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=17">OtterBox</a>'
menu4[11]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=4">Palm</a>'
menu4[12]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=5">Parrot</a>'
menu4[13]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=14">Plantronics</a>'
menu4[14]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=12">Signal Reach</a>'
menu4[15]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=6">Samsung</a>'
menu4[16]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=10">Sanyo</a>'
menu4[17]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=7">Sony Ericsson</a>'
menu4[18]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=20">VXI Corp</a>'
menu4[19]='<a href="http://www.talktyme.com/index.php?target=manufacturers&manufacturer_id=11">Wilson</a>'


//Contents for menu 6,
var menu6=new Array()
menu6[0]='<a href="http://talktyme.com/index.php?target=products&product_id=3953">BlueAnt Z9 Bluetooth</a>'
menu6[1]='<a href="http://talktyme.com/index.php?target=products&product_id=3980">Motorola H710 Bluetooth</a>'
menu6[2]='<a href="http://talktyme.com/index.php?target=products&product_id=3943">Jawbone Bluetooth Black</a>'
menu6[3]='<a href="http://www.talktyme.com/index.php?target=products&product_id=3949">Motorola Bluetooth H12</a>'
menu6[4]='<a href="http://talktyme.com/index.php?target=products&product_id=3948">Wilson SIGNALBOOST™ Mobile and Home/Office Cellular/PCS Amplifier Plug-and-Play Kit</a>'
menu6[5]='<a href="http://talktyme.com/index.php?target=products&product_id=3954"> Blackberry 8800/8830 OEM Rubber Skin Black</a>'
menu6[6]='<a href="http://talktyme.com/index.php?target=products&product_id=3919">Motorola V9 OEM Holster</a>'
menu6[7]='<a href="http://talktyme.com/index.php?target=products&product_id=3955">Blackberry 8300 Curve OEM Rubber Skin Black</a>'

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

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

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>

deb
02-10-2008, 11:35 PM
I have to get this fixed before the morning or I'm in big ----.:( Can anyone help?

ddadmin
02-11-2008, 06:48 AM
I just checked your page, and the menu seems to be working fine for me. What issue(s) exactly are you having, and in what browser?

deb
02-11-2008, 10:54 AM
The top menu. Corporate Support By Brand New Products
Column menu still works....i have 1 hour before i face the music :(

deb
02-11-2008, 11:03 AM
I tried in both IE and Mozilla

ddadmin
02-12-2008, 04:25 AM
I see. The below line on your page is erroneous:


menu4[6]='<a

It needs to be closed off with an apostrophe ('), to say the least.

deb
02-12-2008, 11:55 AM
ddadadmin, you are a lifesaver! I can't thank you enough!! You are a lifesaver!!