RowdyBurns
asked on
Javascript Slashdot style menu with Safari issues
Hi Experts,
I have downloaded and installed the Slashdot style menu from Dynamic Drive. http://www.dynamicdrive.com/dynamicindex1/slashdot.htm
The script is functioning in Firefox, IE AND Safari when it is either in a plain test template page or on the DD site.
Here is the URL to the working 'test' page on my server:
http://www.randomlychallenged.com/SiteMapTEST2.php
However when I come to embed the script in the page I intend to use it in I lose functionality in Safari. Both FF and IE seem unaffected.
I have tried both Transitional and Strict XHTML 1.0 but it doesn't seem to work with either.
Here is the target page:
http://www.randomlychallenged.com/SiteMap.php
I am not very familiar with Javascript and so there may just be a syntax error that I have failed to spot.
Thank you for your expert advise.
I have downloaded and installed the Slashdot style menu from Dynamic Drive. http://www.dynamicdrive.com/dynamicindex1/slashdot.htm
The script is functioning in Firefox, IE AND Safari when it is either in a plain test template page or on the DD site.
Here is the URL to the working 'test' page on my server:
http://www.randomlychallenged.com/SiteMapTEST2.php
However when I come to embed the script in the page I intend to use it in I lose functionality in Safari. Both FF and IE seem unaffected.
I have tried both Transitional and Strict XHTML 1.0 but it doesn't seem to work with either.
Here is the target page:
http://www.randomlychallenged.com/SiteMap.php
I am not very familiar with Javascript and so there may just be a syntax error that I have failed to spot.
Thank you for your expert advise.
And on the second page, your menu is in a table... So most likely it is a CSS problem
ASKER
I will amend the commas now to see if that works.
Here is the CSS the page references. Can you see anything obviously wrong with this?
Here is the CSS the page references. Can you see anything obviously wrong with this?
div.sdmenu {
width: 570px;
font-family: Helvetica;
font-size: 12px;
padding-bottom: 10px;
background: url(bottom.gif) no-repeat right bottom;
color: #ffffff;
}
div.sdmenu div {
background: url(title.gif) repeat-x;
overflow: hidden;
}
div.sdmenu div:first-child {
background: url(toptitle.gif) no-repeat;
}
div.sdmenu div.collapsed {
height: 25px;
}
div.sdmenu div span {
display: block;
padding: 5px 35px;
font-style:italic;
color: #027AC6;
background: url(expanded.gif) no-repeat 10px center;
cursor: default;
border-bottom: 1px solid #ddd;
}
div.sdmenu div.collapsed span {
background-image: url(collapsed.gif);
}
div.sdmenu div a {
padding: 5px 10px;
background: #ffffff;
display: block;
border-bottom: 1px solid #ddd;
color: #666666;
}
div.sdmenu div a.current {
background : #027AC6;
}
div.sdmenu div a:hover {
background : #027AC6 url(linkarrow.gif) no-repeat right top;
color: #fff;
text-decoration: none;
}
ASKER
I tried to remove the errors that you highlighted above but when I did so FF stopped working as well!!?
I have also tried to remove the nested table that contains the menu. This did not effect the functionality in either browser.
Any more suggestions?
I have also tried to remove the nested table that contains the menu. This did not effect the functionality in either browser.
Any more suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Do you think I should re-post this as a CSS question?
ASKER
Sorry I posted that before I got your response. I'll try your suggestion now....
ASKER
BINGO!!! Well done, and thanks for spotting the conflict. Not knowing anything about Javascript I would never have solved it.
Have a good day.
Have a good day.
You too :)
Too many commas
onload= "MM_preloadImages('images/
'images/NewsHubBtnDOWN.gif
'images/ProSearchBtnDOWN.g
'images/MyProfileBtnDOWN.g
'images/InfoBtnDOWN.gif',
'images/ChronicleHubBtnDOW
'images/FreestyleChallComB
'images/ChronicleSearchBtn
'images/ChallengeHubBtnDOW
'images/MailHubBtnDOWN.gif
'images/TrophyCabBtnDOWN.g