Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with menus and templates



Thanks Mike,

IMHO templates are used so that pages of a site can have common features without having to customize each page.

My cure was the following _javascript_. (I changed all button names and document_titles)

function MM_swapImage(k,l,m,a) { //v3.0 
var i=k,j=l,x=m;
var i,j=0,x,a=MM_swapImage.arguments; 
if (m == "images/button1.gif" && document.title=="document_title") return;
if (m == "images/button2.gif" && document.title=="document_title") return;
if (m == "images/button3.gif" && document.title=="document_title") return;
if (m == "images/button4.gif" && document.title=="document_title") return;
if (m == "images/button5.gif" && document.title=="document_title") return;
if (m == "images/button6.gif" && document.title=="document_title") return;
if (m == "images/button7.gif" && document.title=="document_title") return;
if (m == "images/button8.gif" && document.title=="document_title") return;
if (m == "images/button9.gif" && document.title=="document_title") return;
if (m == "images/button10.gif" && document.title=="document_title") return;
document.MM_sr=new Array;
for(i=0;i
<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null) {
document.MM_sr[j++]=x; 
if(!x.oSrc) x.oSrc=x.src; 
x.src="">
}
}


On Apr 16, 2008, at 12:57 AM, Mike wrote:
Usually CSS can take care of this issue no problem. Look for the
[tag- selector] a:hover tag and make it nothing. text-decoration:none

On Sun, Apr 13, 2008 at 6:49 AM, Robert Poland <email@hidden> wrote:
Hi,

Here I am looking for trouble again.

When using templates to create a series of pages and using images in the menu bar I prefer that the menu item for the current page not have an "onmouseover" function.

I assume that _javascript_ can do this but before I try to re-invent the wheel again I'd ask if there a a more conventional way of doing this.

Thanks for all comments,


Bob Poland - Fort Collins, CO

Bob Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

References: 
 >Dealing with menus and templates (From: Robert Poland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.