Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $.ajaxSetup({
- cache: false
- });
- var ajax_load = "<img src='img/load.gif' alt='loading...' />";
- var load_services = "other-financial-services.html";
- var pages = { admin : "admin.php",
- intro : "intro.php",
- accounts : "accounts.php",
- auditing : "audit.php",
- tax : "taxation.php",
- staff : "staff.php",
- maurice : "maurice.php",
- david : "david.php",
- basil : "basil.php",
- craig : "craig.php",
- stuart : "stuart.php",
- jamesm : "jamesm.php",
- jamess : "jamess.php",
- lynsay : "lynsay.php",
- insolv : "insolv.php",
- forensic : "forensic.php",
- litigation : "litigation.php",
- book : "book.php",
- payroll : "payroll.php",
- secretary : "secretary.php",
- acquis : "acquis.php",
- residency : "residency.php",
- services : "services.php",
- vat : "vat.php",
- history : "history.php",
- economy : "economy.php",
- legal : "legal.php",
- security : "security.php",
- banking : "banking.php",
- taxationiom : "taxationiom.php",
- amenities : "amenities.php",
- external : "external.php" };
- $("li a[id^=load_]").each(function(){
- $(this).click(function() {
- $("#result1").html(ajax_load).load(pages[$(this).attr("id")])
- });
- });
- var url = document.location.toString();
- if (url.match('#')) { // the URL contains an anchor
- // click the navigation item corresponding to the anchor
- var anchor = '#' + url.split('#')[0];
- $('#load_' + anchor).click();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement