Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 + '"')});


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •