Results 1 to 3 of 3

Thread: Sticky bar issue

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sticky bar issue

    1) Script Title: Expandable Sticky Bar

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../stickybar.htm

    3) Describe problem: Hey guys

    Trying to adapt this code to my joomla template. Works on the index page, goes to hell on every other page:

    THE PAGE: http://dev.pushthepixel.ca/

    THE CODE: http://www.dynamicdrive.com/dynamicinde ... ckybar.htm

    Any ideas?

    Thanks in advance!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This is due to the path you've specified for the ajax content file inside expstickybar.js:

    Code:
    var mystickybar=new expstickybar({
    	id: "stickybar", //id of sticky bar DIV
    	position:'bottom', //'top' or 'bottom'
    	revealtype:'mouseover', //'mouseover' or 'manual'
    	peekamount:70, //number of pixels to reveal when sticky bar is closed
    	externalcontent:'stickybarcontent.htm', //path to sticky bar content file on your server, or "" if content is defined inline on the page
    	speed:400 //duration of animation (in millisecs)
    })
    Instead of a relative URL (as is the case here) which breaks down if the page requesting it is not in your root directory, you should use an absolute URL to it instead, ie:

    Code:
    var mystickybar=new expstickybar({
    	id: "stickybar", //id of sticky bar DIV
    	position:'bottom', //'top' or 'bottom'
    	revealtype:'mouseover', //'mouseover' or 'manual'
    	peekamount:70, //number of pixels to reveal when sticky bar is closed
    	externalcontent:'http://dev.pushthepixel.ca/stickybarcontent.htm', //path to sticky bar content file on your server, or "" if content is defined inline on the page
    	speed:400 //duration of animation (in millisecs)
    })
    DD Admin

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Woohoo! Its perfect!

    Thanks so much!

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
  •