PDA

View Full Version : Switch Content Script II (icon based) doesn't work in IE?



regina.chou
09-28-2010, 03:51 AM
1) Script Title: Switch Content Script II (icon based)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

3) Describe problem: Hi, I'm trying to implement switch content script on our website, but it doesn't work in IE, the error message says "'switchicon' is undefined", any ideas how to fix this? The link to the web page is: http://www.fortunegroup.com.au/Test-Pages/Test-Switch-Content.aspx
Thanks a lot for your help, Regina

jscheuer1
09-28-2010, 04:28 AM
Here:


<link rel="icon" href="/favicon.ico" /><link href="../App_Themes/FortuneGroup/nivo-slider.css"
type="text/css" rel="stylesheet" />
<script type="text/javascript" src=" http://fortunegroupcomau@fortunegroup.com.au/App_Themes/FortuneGroup/switchcontent.js" ></script>

and here:


<script type="text/javascript" src=" http://fortunegroupcomau@fortunegroup.com.au/App_Themes/FortuneGroup/switchicon.js">

/***********************************************
* Switch Content script II (icon based)- (c) Dynamic Drive (www.dynamicdrive.com)
* Requires switchcontent.js and included before this file!
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

Those src attributes are incorrect. Fix them:


<link rel="icon" href="/favicon.ico" /><link href="../App_Themes/FortuneGroup/nivo-slider.css"
type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://fortunegroup.com.au/App_Themes/FortuneGroup/switchcontent.js" ></script>

and:


<script type="text/javascript" src="http://fortunegroup.com.au/App_Themes/FortuneGroup/switchicon.js">

/***********************************************
* Switch Content script II (icon based)- (c) Dynamic Drive (www.dynamicdrive.com)
* Requires switchcontent.js and included before this file!
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>