Solved

jQuery slideshow not working

Posted on 2012-04-05
4
331 Views
Last Modified: 2012-06-21
I have a web site and using nivoSlider jquery slide show on the top left of the page and it was working until I put my new menu system in and now the slideshow won't work.

http://www.uschrome.com/
0
Comment
Question by:BluesMama
  • 3
4 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 37811940
Are you using a spry drop-down menu?
0
 

Author Comment

by:BluesMama
ID: 37812044
no it's a html5 menu version of a suckerfish menu

<script>
// Javascript originally by Patrick Griffiths and Dan Webb.
// http://htmldog.com/articles/suckerfish/dropdowns/
sfHover = function() {
   var sfEls = document.getElementById("navbar").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>

Open in new window



/*menu---------*/
#navbar {
	margin: 0;
	padding: 0;
	height: 1em;
	width:100%;
}
#navbar li {
	list-style: none;
	float: left;
	width:145px;
	font-size: 90%;
	font-weight: bold;
}
#navbar li a {
	display: block;
	padding: 8px 11px;
	background-color: #111;
	color: #fff;
	text-decoration: none;
	height:38px;
	border:1px solid #666;
	font-weight:bold;
	text-align: center;
}
#navbar li ul {
	display: none;
	width: auto; /* Width to help Opera out */
	background-color: #444;
	height: auto;
}
#navbar li:hover ul {
	display: block;
	position: absolute;
	margin: 0;
	padding: 0; 
	}
#navbar li:hover li {
	float: none; 
	}
#navbar li:hover li a {
	background-color: #444;
	border-bottom: 1px solid #666;
	color: #FFF;
	}
#navbar li li a:hover {
	background-color: #DC2B19;
	}
#navbar li:hover ul, #navbar li.hover ul {
	display: inline-block;
	position: absolute;
	margin: 0;
	padding: 0;
	}
#navbar li:hover li, #navbar li.hover li {
	float: none; 
	}
#navbar li:hover li a, #navbar li.hover li a {
	background-color: #DC2B19;
	border-bottom: 1px solid #666;
	color: #000;
	 }

Open in new window

0
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 37812067
You have a Spry call in your footer.  I would highly suggest removing that first.

<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>

Open in new window

0
 
LVL 30

Expert Comment

by:LZ1
ID: 37812076
It also says your missing the nivo.slider.js file

Not found: http://www.uschrome.com/Scripts/jquery.nivo.slider.pack.js
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now