Return to Snippet

Revision: 36121
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