Var inames = new Array('home', 'about', 'services', 'portfolio', 'quote', 'contact') Īs you can see, the stepcarousel viewer and lightbox are using jquery and i have a little rollover function in there as well (ill clean it all up once i have got everything functioning correctly) which does not use JQuery. If removed, widths should be individually defined on each content DIV then. Width: 892px /*Width of each panel holding each content. Overflow: hidden /*clip content that go outside dimensions of holding panel DIV*/ Position: absolute /*leave this value alone*/ Height: 294px /*Height should enough to fit largest content's height*/ Width: 892px /*Width of Carousel Viewer itself*/ Overflow: scroll /*leave this value alone*/ Position: relative /*leave this value alone*/ * This notice must stay intact for legal use * Step Carousel Viewer script- (c) Dynamic Drive DHTML code library (* Visit for hundreds of DHTML scripts None of these worked, I would click the button but nothing would happen, my head section looks like this without anything to do with the scrolling effect in it: With "jquery-1.2.6.js" in the head section and putting onclick="scrollWin()" in the img tag (this method came from here: "") ScrollTop: $("#topoffooter").offset().top I put the following into the head section (also tried in the body just to see): With "jquery-1.2.6.js" in the head section and i gave the image that was being clicked an ID of "scrollbutton" Var pOffset = $('#topoffooter)').offset().top Var divOffset = $('#header').offset().top I put the following into the head section: With both "jquery-1.2.6.js" and "interface.js" in the head section and putting onclick="$.fn.scroller()" in the img tag (this method came from here: "") Var target = $(this).attr('#topoffooter') // Get scroll target Var speed = 'slow' // Choose default speed I basically have a div section labelled with the id "#topoffooter" and I want to click an image on the navbar so that the window would scroll down smoothly as appropriate. I have been trying to get this JQuery smooth scroll to work for virtually the whole day but haven't had much luck. Sorry if its a bit lengthy but I desperately need some aid (gotta finish the site by tomorrow
0 Comments
Leave a Reply. |