homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Menu without body load

5+ Year Member

Msg#: 3944693 posted 9:33 am on Jul 2, 2009 (gmt 0)

Hi all

Im still pretty new so I hope someone can help.

Im building a site where there is a div containing a slideshow using js. The slideshow is executed on body load.

On top of the div there is another div containing some text. This div is linked to my menu.

My menu is just build up of hyperlinks which means that whenever you navigate in the menu - the slideshow start from the beginning because the body loads.

Do any of you have suggestion for another structure? The main scope is to have a slideshow with text on top and to be able to navigate in the menu (change the text) without restarting the slideshow.

Thanks in advance



10+ Year Member

Msg#: 3944693 posted 4:32 pm on Jul 6, 2009 (gmt 0)

You could possibly employ a method to remember the last slide in view say from the left and on the page reload start the slide show from the last side shown on the left, you would need to disect the javascript for this and amend it to store the last slide in a cookie or server side varialbe (if you are using php).

If neither of the above are suitable solutions you could always embed your pages body into an iframe which will load each pages content when clicking on the navigation links in your menu, i have used this technique to prevent flash mp3/video players from reloading when moving to another page, the only issue with this is lack of content spidering (not sure if this is still an issue these days) and the possibility that a user will land on the iframe page as opposed to the main container of iframe its self, if the latter happens its possible to add a javascript to reload from the iframe page to the actual container page ensuring the end user is viewing the right page.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved