Trouble with iWeb code snippet for drop...

Post Reply
Guest

Trouble with iWeb code snippet for drop...

Post by Guest » Wed Jan 11, 2012 1:19 pm

Hello, So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.Here is what it should read, and does on Safari: Rates and HoursFAQ - YogaFAQ - ReikiFAQ - Massage On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance! Her <html><title></title><head><script><!--function land(ref, target){lowtarget=target.toLowerCase();if (lowtarget=="_self") {window.location=loc;}else {if (lowtarget=="_top") {top.location=loc;}else {if (lowtarget=="_blank") {window.open(loc);}else {if (lowtarget=="_parent") {parent.location=loc;}else {parent.frames[target].location=loc;};}}}}function jump(menu){ref=menu.choice.options[menu.choice.selectedIndex].value;splitc=ref.lastIndexOf("*");target="";if (splitc!=-1){loc=ref.substring(0,splitc);target=ref.substring(splitc+1,1000);}else {loc=ref; target="_self";};if (ref != "") {land(loc,target);}}//--></script></head><body><style type="text/css"><!--  .combobox {background-color: #fef3e2;color: #463c3c;font-size: 13pt;font-family: optima;font-weight: normal;font-style: none;}  --></style><form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"<option value="">Rates, Hours, Reservations</option><option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option><option value="http://yogareikimassage.com/MG/FAQ_-_Yo ... *_top">FAQ and Reserve - Yoga</option><option value="http://yogareikimassage.com/MG/FAQ_-_Re ... *_top">FAQ and Reserve - Reiki</option><option value="http://yogareikimassage.com/MG/FAQ_-_Ma ... *_top">FAQ and Reserve - Massage</option><option value="http://yogareikimassage.com/MG/FAQ_-_Pe ... *_top">FAQ and Reserve - Training</option></select></form></body></html> </blockqu

Guest

Re:Trouble with iWeb code snippet for drop...

Post by Guest » Wed Jan 11, 2012 2:42 pm

It seems you're not the only one who copy/pasted this code. The problem has been dealt with before.  https://discussions.apple.com/message/15484470#15484470

Guest

Re:Trouble with iWeb code snippet for drop...

Post by Guest » Wed Jan 11, 2012 3:41 pm

Oh, good catch, I didn't realize I'd written that wrong. Yes, it should say what you pointed out. I'll check the code out this evening and let you know how it goes! Thanks again!

Guest

Re:Trouble with iWeb code snippet for drop...

Post by Guest » Wed Jan 11, 2012 4:58 pm

I was finally able to get this up on a test page and it works great. Thank you very much for the catch, I really appreciate it!

Post Reply