...

View Full Version : Minor JavaScript help for form based editing



AlexWebleyCom
10-09-2008, 04:18 AM
Hello,

I am rather ignorant when it comes to JavaScript and am having difficulty finding the last solution to a linking issue.

I cannot access the raw code (and thus insert a simple link substitution), so have to input complete Javascript via a webform. I have had some good help so far from a member of the forum (Dgrin) attached to the application, however the solution to the final hurdle eludes me so far.

The site concerned is http://www.AlexWebleyMedia.com

My issue is how to change the link behavior of the topmost "Home" link/word. So far, I have managed to change the footer link via the application tutorial and the SmugMug logo was changed due to some great help from a DGrin forum member.

I have come here for more help from code experts please.

More detail about the issue appears here:

http://www.dgrin.com/showthread.php?t=107842

The code I used to change the SmugMug logo is:

// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
this.href = "http://www.anrdoezrs.net/click-3190988-10419573";
this.firstChild.alt = "SmugMug";
this.firstChild.title = "SmugMug";
});

This is slightly different (URL) to what was suggested.

For the Home link I will probably input a link to one of my sites such as http://www.alexwebley.com

Thanks for your help.

Alex

AlexWebleyCom
10-14-2008, 03:02 AM
Fixed; I used this code:

// Change Home Link (from Devbobo)
YE.onContentReady('toolbar', function () { this.innerHTML = this.innerHTML.replace(/href="http:\/\/www.smugmug.com\/([?\w&;=]+)?"/, 'href="' + webServer + '"')});



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum