jquery - How to make a website load only a certain div(class) to save load time, using JavaScript -


Is it possible to load only a certain device for me

  

If any link is clicked on the page, then I want the whole page to be the same except by leaving that part of the page using Javascript, in a sliding transition should be there. I tried to search it on Google but it did not help me because I am very poor in javascript. Please help, thank you!

This is the most common and perhaps the best way to do this with Ajax though I have a different solution It can not be the best but it works, and this answer is no server required it will use jQuery and a plugin called a plug-ins called bicycles will be called malshup. Instead of using images on the plugin, you can use the div in which your content may be included then use your link as a pager.

There is a minimum level of style:

HTML

  & lt; Div class = "container" & gt; & Lt; Div class = "contentbox" & gt; About content & lt; / Div & gt; & Lt; Div class = "contentbox" & gt; Portfolio Content & lt; / Div & gt; & Lt; Div class = "contentbox" & gt; Service Content & lt; / Div & gt; & Lt; Div class = "contentbox" & gt; FAQ content & lt; / Div & gt; & Lt; Div class = "content box" & gt; Contact page & lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - Menu - & gt; & Lt; Div class = "menu" & gt; & Lt; Ul id = "menu 2" & gt; & Lt; Li & gt; & Lt; A class = "first" id = "about" href = "approximate" & gt; About & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "first" id = "portfolio" href = "portfolio" & gt; Portfolio & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "first" id = "services" href = "services" & gt; Services & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; One class = "first" id = "FAQ" href = "faq" & gt; FAQ & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; One class = "first" id = "contact" href = "contact" & gt; Contact & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

jQuery bicycle script

  $ (document) .ready (function () {$ ('. Container') Cycle (Fax: 'Feed', Speed: 1000, Delay: 5000, Timeout: 0, // Sync: 0, Container Resize: 0, Slide Resize: 0, Pager: '# Menu 2', Pager Anchor Builder: Function (IDX , Slides) {// Selector string for existing anchor return '# menu2 li: eq (' + idx + ') a';}});});  

CSS styling and bicycle effect / are up to you.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -