Revision: 36121
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 18, 2010 07:01 by lynseydesign
Initial Code
jQuery("div#listings-widget a").each(function() { var path = jQuery(this).attr('href'); var newpath = "http://localhost/WandP/listings/#" + path; jQuery(this).attr('href', newpath); }); //Find #hash in current url and load in iframe var url = window.location; var anchor = url.hash; var newanchor = url.hash.substring(1); jQuery(document).ready(function() { jQuery("iframe").attr("src", newanchor); });
Initial URL
Initial Description
Redirect Links to Internal Page with Orignal Link as #hash
Initial Title
Add to href attribute of existing link
Initial Tags
Initial Language
jQuery