SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery Tools Question: correct way of referencing framework and calling functions?

    I'm using Jquery TOOLS to create some effects on a site.

    The effects are:

    • scrollables
    • overlays
    • tabs


    The effects work fine on Firefox, Chrome, Safari and IE8.

    This is how i've referenced the framework and called the functions:

    Code HTML4Strict:
    <script type="text/javascript" src="http://cdn.jquerytools.org/1.0.2/jquery.tools.min.js"></script>
     
    		<script type="text/javascript">
     
    			$(document).ready(function() {
     
    				$('.scrollable').scrollable({
    					interval: 3000,
    					size: 1,
    					loop: true
    				});
     
    				$('a[rel]').overlay({
    					effect: 'apple',
    					expose: '#92A0AD',
    				});
     
    				$("ul.tabs").tabs("div.panes > div");								
    			})
     
    		</script>
     
    	</body>

    I'm getting this error on IE Tester:

    http://twitpic.com/puqaj

    I'm wondering if i'm doing something wrong..on IE Tester, the effects don't work on IE 6 and IE 7.

    I checked line 235, and it looks like this:

    http://twitpic.com/purya/full

    I'm not a Javascript person, just started learning it.

    Any help is greatly appreciated.

    Thanks
    Jaysone

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guys, i fixed..just removed the coma after expose: '#92A0AD' like so:

    Code HTML4Strict:
    <script type="text/javascript">
     
    			$(document).ready(function() {
     
    				$('.scrollable').scrollable({
    					interval: 3000,
    					size: 1,
    					loop: true
    				});
     
    				$('a[rel]').overlay({
    					effect: 'apple',
    					expose: '#92A0AD'
    				});
     
    				$("ul.tabs").tabs("div.panes > div");								
    			})
     
    		</script>
    Jaysone


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •