Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    I am at a total loss as to how to change the javascript code on this website to make the "401K Services" tab in the drop down menu link to another site (www.fvasset.com), instead of the current page. I believe the code is in the file copied below. Can someone PLEASE walk me through how exactly to change this code, I've already tried a million different versions, so any help would be greatly appreciated!

    Site is...www.fallick.com (it's the guy's last name, and his thought is no one will forget him or the company..lol) This is NOT a site I designed, and from the looks of it it's a .js nightmare. Thanks in advance...

    f.hsHoverSel=hsHoverSel;}f.execURL=execURL;}}else f=mFrame;if(NS) obj=f.document.layers[oName];else{obj=(BV>=5?f.document.getElementById(oName): f.document.all[oName]);if(obj) if(obj.id!=oName) obj=null;}return r?[obj,f]bj;}function gpid(o){return (BV>=5?o.parentNode.parentNode.id.parentElement.parentElement.id);}if(IE) with(document){open();write(xrep(Expand("<div id=\"Group001008395 opacity:0.94 Alpha( 94Group001frmt008395px;\"808319$11 096%spacer0136210TEAM976%spacer 11!808319$11#0about.htm96%\" width=0136210976%\" width=11!2808319$11196%spacer0 136210APPROACH 976%spacer11!2808319$11#1app roach.htm96%\" width=0136210976%\" width=11!4808319$11296%spacer0 136210CONTACT976%spacer11!4808319 $11#2contact.htm96%\" width=0136210976%\" width=11!6808319$11396%spacer0 136210OUTREACH976%spacer11!6808319 $11#3outreach.htm96%\" width=0136210976%\" width=11>!Group00200154155 opacity:0.94 Alpha( 94Group002frmt00154155px;\"8015419$1 1496%spacer01313310PRODUCTS & SERVICES9147%spacer11!8015419$11 #4products-services.htm96%\" width=013133109147%\" width=11!28015419$11596%spacer0 1313310EMPLOYEE BENEFITS9147%spacer11!28015419$11 #5eb.htm96%\" width=013133109147%\" width=11!48015419$11696%spacer0 1313310HR CONSULTING9147%spacer11!48015419$11 #6hr-consulting.htm96%\" width=013133109147%\" width=11!68015419$11796%spacer0 1313310GROUP ADMINISTRATION 9147%spacer11!68015419$11#7g roup-admin.htm96%\" width=013133109147%\" width=11!88015419$11896%spacer0 1313310ONLINE SERVICES 9147%spacer11!88015419$11#8o nline-services.htm96%\" width=013133109147%\" width=11!108015419$11996%spacer 01313310401K SERVICES9147%spacer11!108015419$11 #9401k.htm96%\" width=013133109147%\" width=11!128015419$111096%spacer 01313310INDIVIDUAL BENEFITS9147%spacer11!128015419$11 #10 OnClick=\"cFrame.execURL(\'https://www.ehealthinsurance.com/ehi...blank\&#39;);\"><img style=\"position:absolute;top:96%\" width=013133109147%\" width=11>!Group0030013895 opacity:0.94 Alpha( 94Group003frmt0013895px;\"8013819$11 1196%spacer01311710HSA & HRA CENTER9131%spacer11!8013819$11 #11hsa.htm96%\" width=013117109131%\" width=11!28013819$111296%spacer 01311710PAYROLL CENTER9131%spacer11!28013819$11 #12payroll.htm96%\" width=013117109131%\" width=11!48013819$111396%spacer 01311710COBRA9131%spacer11!480138 19$11#13cobra.htm96%\" width=013117109131%\" width=11!68013819$111496%spacer 01311710HEALTHCARE UPDATES9131%spacer11!68013819$11 #14healthcareupdates.htm96%\" width=013117109131%\" width=11>!>"),'%'+'%REL%%',rimPath));close();}E xpand('');SetUpEvents();

    function Expand(c){var x;x="#FFFFFF";c=xrep(c,"",x);x="#FF9900";c=xrep(c ,"",x);x="#CC6600";c=xrep(c,"",x);x="\" style=\"position:absolute;top:";c=xrep(c,"",x);x= "px;left:";c=xrep(c,"",x);x="px;width:";c=xrep(c, "",x);x="px;height:";c=xrep(c,"",x);x="px;visibi lity:hidden;";c=xrep(c," ",x);x="progidXImageTransform.Microsoft.";c=xrep(c," ",x);x="opa city=";c=xrep(c," ",x);x=")\"><div id=\"";c=xrep(c,"",x);x=";background-color:";c=xrep(c,"",x);x="px;white-space:nowrap;font-family:";c=xrep(c,"",x);x=";font-size:";c=xrep(c,"",x);x="px;font-weight:normal;font-style:normal;text-decoration:none;color:";c=xrep(c,"",x);x=";\" id=N";c=xrep(c,"",x);x=" OnMouseOver=\"cFrame.HoverSel(0,this);\"><img style=\"position:absolute;top:";c=xrep(c,"",x);x= "px;\" src=\"";c=xrep(c,"",x);x=".gif\" width=";c=xrep(c,"",x);x=" height=";c=xrep(c,"",x);x="><div style=\"position:absolute;top:";c=xrep(c,"",x);x= "px;\" align=left>";c=xrep(c,"",x);x=";cursor:default;vi sibility:hidden;\"";c=xrep(c,"",x);x="</div></div";c=xrep(c,"",x);x=" OnClick=\"cFrame.execURL(\'%%REP%%";c=xrep(c,"",x );x="\',\'_self\');\"><img style=\"position:absolute;top:";c=xrep(c,"",x);x ="><div id=\"";c=xrep(c,"",x);x="</div><img style=\"position:absolute;top:";c=xrep(c,"",x);x =";filter:";c=xrep(c," ",x);x="></div";c=xrep(c,"!",x);x=" id=O";c=xrep(c,"#",x);x="Tahoma";c=xrep(c,"$",x) ;x="%%REL%%";c=xrep(c,"%",x);return c;}function pri(n){return parseInt(n,10)}

  2.  

  3. #2
    Senior Member Harmonic's Avatar
    Join Date
    Jan 2011
    Location
    Toronto
    Posts
    291
    Member #
    26468
    Liked
    23 times
    Well... you're right. This site is a nightmare. The fact that the site has been created/modified by DreamWeaver doesn't make things easier.

    So the 'menu' function is referencing a file fallick.com/nsmenu.js which is reference bluehost.com

    Edit this line in your code
    Code:
    width=11!108015419$11996%spacer01313310401K SERVICES9147%spacer11!108015419$11#9401k.htm96%\"
    and change it to
    Code:
    width=11!108015419$11996%spacer01313310401K SERVICES9147%spacer11!108015419$11#9***NEWURLGOESHERE***96%\"
    Change ***NEWURLGOESHERE*** to the url you want it to direct too

  4. #3
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    yeah, I had no idea this site was so badly done until I already offered the assistance. Anyway, that ix worked like a charm - thank you! One more thing, I'd like to set it to open in another page, I know I need to use the "_blank" function, but I can't manage to get that coding to work either, can you help with that as well?

    Thank again!

  5. #4
    Senior Member Harmonic's Avatar
    Join Date
    Jan 2011
    Location
    Toronto
    Posts
    291
    Member #
    26468
    Liked
    23 times
    Try adding target ="_blank" to the end like this.
    Code:
    width=11!108015419$11996%spacer01313310401K SERVICES9147%spacer11!108015419$11#9***NEWURLGOESHERE***96%\" target ="_blank"
    If this does not work then based on that code I don't think it's possible to pass a parameter. Hopefully another JavaScript ninja on this forum can help you.

    Perhaps you could ask for some more money based on the situation and just redo the entire navigation system using CSS. Would be infinitely better for SEO, and way easier to edit in the future!

  6. #5
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    Yeah that fix didn't work either, but thanks for the help! I have to build another small site to link another page to, so changing this awful nav system would DEF be helpful for me! I'm going to see if they are open to that. Thanks again...


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:29 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com