Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-09-2008, 03:18 AM   PM User | #1
AlexWebleyCom
New to the CF scene

 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
AlexWebleyCom is an unknown quantity at this point
Minor JavaScript help for form based editing

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 is offline   Reply With Quote
Old 10-14-2008, 02:02 AM   PM User | #2
AlexWebleyCom
New to the CF scene

 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
AlexWebleyCom is an unknown quantity at this point
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 + '"')});
AlexWebleyCom is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:49 AM.


Advertisement
Log in to turn off these ads.