Had a designer build a template for me that works wonderfully except I cannot for the life of me figure out how to change the links in the javascript menu.What am I missing?If anyone thinks they can help me in person with this on the fly this afternoon as well, please let me know. Shoot me an email (ncsulilwolf@gmail.com) with time estimate and rate. My office is about 5 minutes from campus.Thanks!
4/8/2009 12:13:23 PM
If you can, post the relevant JS here. There are plenty of folks who could help out.
4/8/2009 12:19:53 PM
there are too many variables for anyone to make a reasonable answer without more information. what was the template built in? are you talking about a Dreamweaver-type template? Or a CMS, like Wordpress or drupal?"javascript menu"? There are hundreds of types of menus, and dozens of ways to implement them in javascript. is this a live webpage? can you just post the URL?
4/8/2009 12:20:38 PM
Sorry - should have included way more info the first time. The template is based on an index page with CSS... using Dreamweaver to edit the pages' content.Here's the code out of the menu.js item... let me know if this is not enough:stm_bm(["menu073b",730,"","blank.gif",0,"","",1,0,0,0,1000,1,0,0,"","",0,0,1,1,"default","hand",""],this);stm_bp("p0",[0,4,0,0,0,3,0,0,100,"stEffect(\"slip\")",-2,"stEffect(\"slip\")",-2,90,0,0,"#7F7F7F","#3A6EA5","",3,0,0,"#800000"]);stm_ai("p0i0",[0,"Home","","",-1,-1,0,"index.html","_self","","","","",0,0,0,"","",0,0,0,0,1,"#003C6D",1,"#F4EFED",1,"","",0,0,0,0,"#FFFFFF","#DDD7D4","#FFFFFF","#CADEF6","bold 10.5pt 'Trebuchet MS','Arial','Verdana','sans-serif'","bold 10.5pt 'Trebuchet MS','Arial','Verdana','sans-serif'",0,0],0,25);stm_ai("p0i1",[6,1,"transparent","menu_div.gif",30,10,0]);stm_aix("p0i2","p0i0",[0,"Veterinary Services","","",-1,-1,0,"#"],0,25);stm_bp("p1",[1,4,0,1,0,3,6,0,100,"stEffect(\"slip\")",-2,"stEffect(\"slip\")",-2,50,0,0,"#DDD7D4","transparent","",3,1,1,"#DDD8D6"]);stm_ai("p1i0",[0,"Endoscopy","","",-1,-1,0,"#","_self","","","myarrowh.gif","myarrowh.gif",6,3,0,"","",0,0,0,0,1,"#FFFFFF",0,"#CADEF6",0,"","",3,3,0,0,"#FFFFFF","#FFFFFF","#013f7c","#000000","10pt 'Arial','Verdana'","10pt 'Arial','Verdana'",0,1],170,0);stm_aix("p1i1","p0i1",[6,1,"#DDD8D6","",0,0]);stm_aix("p1i2","p1i0",[0,"High-Tech Dentistry"],170,0);stm_aix("p1i3","p1i1",[]);stm_aix("p1i4","p1i0",[0,"Radiology"],170,0);stm_aix("p1i5","p1i1",[]);stm_aix("p1i6","p1i0",[0,"In-House Laboratory"],170,0);stm_aix("p1i7","p1i1",[]);stm_aix("p1i8","p1i0",[0,"Technology"],170,0);stm_aix("p1i9","p1i1",[]);stm_aix("p1i10","p1i0",[0,"Microchipping"],170,0);stm_aix("p1i11","p1i1",[]);stm_aix("p1i12","p1i0",[0,"Orthopedic Surgery"],170,0);stm_aix("p1i13","p1i1",[]);stm_aix("p1i14","p1i0",[0,"Grooming"],170,0);stm_aix("p1i15","p1i1",[]);stm_ep();stm_aix("p0i3","p0i1",[]);stm_aix("p0i4","p0i2",[0,"Our Doctors"],0,25);stm_aix("p0i5","p0i1",[]);stm_aix("p0i6","p0i2",[0,"Doggie Daycare & Boarding"],0,25);stm_bpx("p2","p1",[]);stm_aix("p2i0","p1i0",[0,"Rules"],170,0);stm_aix("p2i1","p1i1",[]);stm_aix("p2i2","p1i0",[0,"Hours & Dates (Closings)"],170,0);stm_aix("p2i3","p1i1",[]);stm_aix("p2i4","p1i0",[0,"Calendar"],170,0);stm_aix("p2i5","p1i1",[]);stm_aix("p2i6","p1i0",[0,"Photo Albums"],170,0);stm_aix("p2i7","p1i1",[]);stm_aix("p2i8","p1i0",[0,"Virtual Tour"],170,0);stm_aix("p2i9","p1i1",[]);stm_aix("p2i10","p1i0",[0,"Videos"],170,0);stm_aix("p2i11","p1i1",[]);stm_aix("p2i12","p1i0",[0,"Testimonials"],170,0);stm_aix("p2i13","p1i1",[]);stm_ep();stm_aix("p0i7","p0i1",[]);stm_aix("p0i8","p0i2",[0,"Forms"],0,25);stm_aix("p0i9","p0i1",[]);stm_aix("p0i10","p0i2",[0,"About Us"],0,25);stm_bpx("p3","p1",[]);stm_aix("p3i0","p1i0",[0,"Hours"],170,0);stm_aix("p3i1","p1i1",[]);stm_aix("p3i2","p1i0",[0,"Map and Directions"],170,0);stm_aix("p3i3","p1i1",[]);stm_aix("p3i4","p1i0",[0,"Contact Info & Form"],170,0);stm_aix("p3i5","p1i1",[]);stm_aix("p3i6","p1i0",[0,"Newsletter Sign-Up"],170,0);stm_aix("p3i7","p1i1",[]);stm_aix("p3i8","p1i0",[0,"News Archive"],170,0);stm_aix("p3i9","p1i1",[]);stm_aix("p3i10","p1i0",[0,"Social Networking"],170,0);stm_aix("p3i11","p1i1",[]);stm_aix("p3i12","p1i0",[0,"Website Services"],170,0);stm_aix("p3i13","p1i1",[]);stm_ep();stm_ep();stm_em();
4/8/2009 1:23:44 PM
yikes!
4/8/2009 3:14:01 PM
that is a poorly implemented javascript menu
4/8/2009 3:42:26 PM
Wow
4/8/2009 3:45:24 PM
are you using Dreamweaver too? Do you have the dreamweaver template .DWT files?
4/8/2009 3:46:04 PM
I'd almost just suggest a new script entirely (or straight css), it would almost be quicker than figuring that stupid shit out.
4/8/2009 10:46:37 PM
Your designer is an asshat to use javascript like that.
4/9/2009 12:54:55 AM
Can you post your javascript stm_bm, stm_bp, stm_ep, stm_em, stm_ai, and stm_aix functions? So we can reverse engineer this thing.JS functions start something like this:
function stm_ep() {
4/9/2009 1:01:51 AM
So I decided to update this mofo just for the sake of all you other techies that wanted to see wtf was going on here. The menu this designer built was created using a WYSIWYG menu creator, DHTML Menu 9.2 (http://www.sothink.com/product/dhtmlmenu/index.htm ). It literally had a basic rollover menu operating with about 7 java scriplet files. You could tell the code it spit it was never intended to be edited by a human. If we would've had the original proprietary file that this thing was created with, fixing it would've been cake, but we didn't so it really wasn't an option. It needed to work today so I scrapped the old one and implemented a simple, clean, CSS based menu.
4/9/2009 9:19:00 AM
Holy shit.
4/9/2009 10:28:07 AM
Does DHTML Menu 9.2 not have an editing feature? Guess it doesn't matter now that you've implemented a clean, CSS based menu. Guess now you'll have to train the end-user on CSS or HTML. I'm not trying to dog you for doing it the right way, but sometimes programmers let their personal hatreds obscure the simplest solution.Holy Fail on the designer from the OP for not documenting on how to use the website they designed.
4/9/2009 12:57:45 PM
No, it absolutely has an editing feature and that was what I initially suggested. It's like photoshop where files are saved in a proprietary format for editing (.PGT), but the output is just a series of .js files. You can't recompile a PGT from a series of JS files...I tried. We contacted the guy the made the menu to retrieve the PGT, but as far as I know we haven't heard back from him.[Edited on April 9, 2009 at 3:13 PM. Reason : .]
4/9/2009 3:12:39 PM
Then double fail on the designer for not giving them the PGT files. Let us know which design firm so people can know to avoid them in the future.
4/9/2009 3:26:27 PM
lol, yeah tell me about it, I'm just a sub-contractor myself, I came across this post yesterday and happened to have an afternoon free so I decided to go check things out. If NCSULilWolf wants to put the designer on blast, I'm going to leave it to her.[Edited on April 9, 2009 at 4:24 PM. Reason : .]
4/9/2009 4:23:44 PM