473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Having trouble with j-query.

Hi all,

I've been working on my personal portfolio website and been struggling a lot because of J-query. Since my j-query level is not like master.. I usually modify existing j-query plugins to meet my needs and this time I'm trying to combine both accordion plugin and slideshow plugin.

I used the tutorial for accordion from this website -
http://acrisdesign.com/2010/03/jquery-tutorial-toggle-effect-on-hoverclick

also used the tutorial for slideshow from this website - http://sorgalla.com/jcarousel

These two j-query plug-ins work fine when they're not combined together but when I combined two plug-ins and implemented on my website they don't work properly.

This is the page where I'm having trouble. http://jsikcom.ipage.com/portfolio-test3.htm

once you click the banner in the middle, it expands but the slide show function doesn't work properly.

Can anyone help me out??

Here is the html code
Expand|Select|Wrap|Line Numbers
  1.  
  2. <script type="text/javascript" src="jquery.js"></script>
  3. <script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
  4. <script type="text/javascript">
  5.     $(document).ready(function(){
  6.         //Hide the tooglebox when page load
  7.         $(".contentbox").hide();
  8.         //slide up and down when click over heading 2
  9.             $(".affiliates a").click(function(){
  10.         // slide toggle effect set to slow you can set it to fast too.
  11.         $(this).next(".contentbox").slideToggle("normal");
  12.         return false;
  13.         });
  14.     });
  15. </script>
  16.  
  17.  
  18. <script type="text/javascript">
  19. jQuery(document).ready(function() {
  20.     jQuery('#mycarousel').jcarousel({
  21.                 scroll: 1,
  22.                 width: 557,
  23.                 height: 221,
  24.                 visible: 1,
  25.                 animation:600,
  26.                 wrap:"both"
  27.     });
  28.      $(".image").fadeIn(1900);
  29. });
  30.  
  31.  
  32. $(function() {  
  33. $('a').click(function() {  
  34. $('.image').fadeOut(1500);  
  35. setTimeout('window.location = url', 1500);
  36. });  
  37. }); 
  38.  
  39. </script>
  40. <link href="_css/style.css" rel="stylesheet" type="text/css" />
  41. <link rel="stylesheet" type="text/css" href="skins/tango/skin.css" />
  42. </head>
  43.  
  44. <body>
  45.  
  46. <div class="container">
  47.   <div class="header">
  48.       <div class="logo"><a href="index.html"><img src="_image/logo.png" width="248" height="146" alt="Logo" /></a></div>
  49.       <div class="menu">
  50.        <ul>
  51.         <li><a href="about.html" class="about">ABOUT</a></li>
  52.         <li><a href="portfolio.html" class="portfolio">PORTFOLIO</a></li>
  53.         <li><a href="blog.html" class="blog">BLOG</a></li>
  54.         <li><a href="contact.html" class="contact">CONTACT</a></li>
  55.        </ul>
  56.       </div>  
  57.       </div>  
  58.  
  59.   <div class="content">
  60.     <div class="title"><img src="_image/portfolio.png" width="795" height="71" alt="Product designer" /></div>
  61.      <p>&nbsp;</p>   
  62.  
  63.     <div class="affiliates">
  64.         <a href="#" class="p1"><img src="_image/project01.jpg" alt="" /></a>
  65.         <div class="contentbox">
  66.  
  67.   <ul id="mycarousel" class="jcarousel-skin-tango">
  68.     <li><img src="img/picture1.jpg" width="557" height="281" alt="" /></li>
  69.     <li><img src="img/picture2.jpg" width="557" height="281" alt="" /></li>
  70.     <li><img src="img/picture3.jpg" width="557" height="281" alt="" /></li>
  71.   </ul>
  72.  
  73.     </div>
  74.  
  75.         <!--Content Here--></div>
  76.     </div>
  77.  
  78.  
  79.     <!-- end .content --></div>
  80.  
  81.  
  82.  
  83.   <div class="footer">
  84.     <p>Copyright</p>
  85.     <!-- end .footer --></div>
  86.   <!-- end .container --></div>
  87. </body>
  88. </html>
  89.  
Oct 20 '10 #1
3 1488
JKing
1,206 Expert 1GB
You have a javascript error on line 35 of the code you posted.

setTimeout('window.location = url', 1500);
That is the offending line and the error is "url is undefined".

I'm going to assume you need to replace url with an actual url on your site.
Oct 20 '10 #2
jaesik
1
Hi Jking,

I actually removed the line 35 because it's not important to main function but it still fails to work.
Oct 20 '10 #3
JKing
1,206 Expert 1GB
Can you be more specific as to what is and isn't working and how it should be working?
Oct 21 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Anand | last post by:
Hi i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i...
2
by: ed | last post by:
i'm having trouble with a form. I want to be able to type in the address of the form with the data for the form items in the URL (ie: http://somesite.com/formpage.html?field1=data1&field2=data2)....
1
by: Lauren Wilson | last post by:
I'm having trouble with the Access VBA help on my installation of A2K with Dev tools. Every time I try to retrieve help for items listed in the Object Browser (and SOME other items as well),...
2
by: Jozef | last post by:
Hello, I am trying to put together a module and open a workspace on a database that has a simple password (using Access XP). This is the lin that I'm having trouble with; Set wrk =...
0
by: Jozef | last post by:
Hello, I'm having trouble with the download links on my web server. The error I'm getting is; CGI Timeout The specified CGI application exceeded the allowed time for processing. The server...
1
by: Jozef | last post by:
Hello. I'm having trouble creating a blank solution (and ASP.net web application) from my laptop. I own the server (in fact it's sitting right next to me) and have added the URL to the trusted...
1
by: MLH | last post by:
Am having trouble with the filter property setting below. Would like to filter the listing to car makes beginning with "D". I'm blowing it on the filter spec somehow??? Sub OpenRecordsetX() ...
2
by: Jake Barnes | last post by:
I've read over the documentation for these effects: http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo I want to include them on my page. I tried attaching using onload, but...
3
by: Michael | last post by:
Hi all, I'm having trouble PInvoking a TCHAR within a struct. I'll paste the specific struct's API definition below. I've tried so many numerous variations. The main Win32 error I get is...
2
by: Stu | last post by:
Hi guys, I've been having trouble getting the clock function to work portably, please could I get some thoughts? <Possibly OT comments> It works fine on my laptop (under WinXP) and on my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.