View Single Post
Old 01-27-2010, 05:45 PM   PM User | #1
phellyer
New to the CF scene

 
Join Date: Jan 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
phellyer is an unknown quantity at this point
Exclamation <a href="XYZ"></a> append script help

Hi,
I have a script that is designed to append all the links on a page with the exstension '&layout=jp ' for the href.

onload = function () { for (var i = 0; i < document.links.length; i++) document.links[i].href = document.links[i].href + '&layout=jp'}

I would like to be able exclude certain links from this happening too, ideally through their css class/id ... but I am not sure where to start?

Any help would be much appreciated.

Best,
P
phellyer is offline   Reply With Quote