/    Sign up×
Community /Pin to ProfileBookmark

Change link behavior using form based java 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 [url]http://www.AlexWebleyMedia.com[/url]

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:

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

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 [url]http://www.alexwebley.com[/url]

Thanks for your help.

Alex

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@AlexWebleyComauthorOct 14.2008 — 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 + '"')});
×

Success!

Help @AlexWebleyCom spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...