This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > How do I: Disable navigation button and rollover.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do I: Disable navigation button and rollover.
|
|
| Mike the monk 2004-08-17, 4:14 am |
| How do I disable a navigation button and the rollover when the link points to the current page?
| |
| Murray *TMM* 2004-08-17, 12:15 pm |
| Show me your code, please.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Mike the monk" <webforumsuser@macromedia.com> wrote in message
news:cfsami$apg$1@forums.macromedia.com...
> How do I disable a navigation button and the rollover when the link points
> to the current page?
>
| |
| Mike the monk 2004-08-17, 12:15 pm |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>navigation frame</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {background-color: #000066;}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body
onload="MM_preloadImages('../../graphics/home1.gif','../../graphics/yungdrung1.g
if','../../graphics/articles1.gif','../../graphics/translations1.gif','../../gra
phics/publications1.gif','../../graphics/bibliography1.gif','../../graphics/gall
ery1.gif','../../graphics/contribute1.gif','../../graphics/contacts1.gif','../..
/graphics/links1.gif')">
<div align="center">
<p><img src="../../graphics/khyung.gif" width="37" height="39" /></p>
<p><a href="../../index.html" target="_top"
onmouseover="MM_swapImage('Home','','../../graphics/home1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/home2.gif" alt="HOME"
name="Home" width="94" height="15" border="0" id="Home" /></a></p>
<p><a href="../yungdrung.html" target="right"
onmouseover="MM_swapImage('Yungdrung','','../../graphics/yungdrung1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/yungdrung2.gif"
alt="YUNG-DRUNG B?N" name="Yungdrung" width="94" height="15" border="0"
id="Yungdrung" /></a></p>
<p><a href="../articles.html" target="right"
onmouseover="MM_swapImage('Articles','','../../graphics/articles1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/articles2.gif"
alt="ARTICLES" name="Articles" width="94" height="15" border="0" id="Articles"
/></a></p>
<p><a href="../translations.html" target="right"
onmouseover="MM_swapImage('Translations','','../../graphics/translations1.gif',1
)" onmouseout="MM_swapImgRestore()"><img src="../../graphics/translations2.gif"
alt="TRanslations" name="Translations" width="94" height="15" border="0"
id="Translations" /></a></p>
<p><a href="../publications.html" target="right"
onmouseover="MM_swapImage('Publications','','../../graphics/publications1.gif',1
)" onmouseout="MM_swapImgRestore()"><img src="../../graphics/publications2.gif"
alt="PUBLICATIONS" name="Publications" width="94" height="15" border="0"
id="Publications" /></a></p>
<p><a href="../bibliography.html" target="right"
onmouseover="MM_swapImage('Bibliography','','../../graphics/bibliography1.gif',1
)" onmouseout="MM_swapImgRestore()"><img src="../../graphics/bibliography2.gif"
alt="BIBLIOGRAPHY" name="Bibliography" width="94" height="15" border="0"
id="Bibliography" /></a></p>
<p><a href="../gallery.html" target="right"
onmouseover="MM_swapImage('Gallery','','../../graphics/gallery1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/gallery2.gif"
alt="GALLERY" name="Gallery" width="94" height="15" border="0" id="Gallery"
/></a></p>
<p><a href="../contribute.html" target="right"
onmouseover="MM_swapImage('Contribute','','../../graphics/contribute1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/contribute2.gif"
alt="CONTRIBUTE" name="Contribute" width="94" height="15" border="0"
id="Contribute" /></a></p>
<p><a href="../contacts.html" target="right"
onmouseover="MM_swapImage('Contacts','','../../graphics/contacts1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/contacts2.gif"
alt="CONTACTS" name="Contacts" width="94" height="15" border="0" id="Contacts"
/></a></p>
<p><a href="../links.html" target="right"
onmouseover="MM_swapImage('Links','','../../graphics/links1.gif',1)"
onmouseout="MM_swapImgRestore()"><img src="../../graphics/links2.gif"
alt="LINKS" name="Links" width="94" height="15" border="0" id="Links"
/></a></p>
<table width="94" background="../../graphics/background.gif" id="pattern">
<tr>
<td nowrap="nowrap"> </td>
</tr>
</table>
</div>
</body>
</html>
| |
| Murray *TMM* 2004-08-17, 12:15 pm |
| > navigation frame
Are you using Frames? Looks like it.
And what you want is some way to make the navigation element to the current
page shown in the other frame NOT have a link? Uhbboy. There's not going
to be an easy way to do that without getting into cross-frame show-hide
layers or custom javascript.
As an example of the former method, you could have a layer for each
navigation button that contains the DOWN button image only *AND* no link on
it. Superimpose each such layer over the associated navigation element, and
hide it. Make each page that loads into the content frame SHOW the
associated layer, and hide all the rest.
Gotta love frames....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Mike the monk" <webforumsuser@macromedia.com> wrote in message
news:cfsvfe$4rt$1@forums.macromedia.com...
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>navigation frame</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> <style type="text/css">
> <!--
> body {background-color: #000066;}
> -->
> </style>
> <script language="JavaScript" type="text/javascript">
> <!--
> function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
> x.src=x.oSrc;
> }
>
> function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
> i<a.length;
> i++)
> if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
> }
>
> function MM_findObj(n, d) { //v4.01
> var p,i,x; if(!d) d=document;
> if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
> x=d.forms[n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers.document);
> if(!x && d.getElementById) x=d.getElementById(n); return x;
> }
>
> function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
> for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
> //-->
> </script>
> </head>
> <body
> onload="MM_preloadImages('../../graphics/home1.gif','../../graphics/yungdrung1.g
> if','../../graphics/articles1.gif','../../graphics/translations1.gif','../../gra
> phics/publications1.gif','../../graphics/bibliography1.gif','../../graphics/gall
> ery1.gif','../../graphics/contribute1.gif','../../graphics/contacts1.gif','../..
> /graphics/links1.gif')">
> <div align="center">
> <p><img src="../../graphics/khyung.gif" width="37" height="39" /></p>
> <p><a href="../../index.html" target="_top"
> onmouseover="MM_swapImage('Home','','../../graphics/home1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/home2.gif"
> alt="HOME"
> name="Home" width="94" height="15" border="0" id="Home" /></a></p>
> <p><a href="../yungdrung.html" target="right"
> onmouseover="MM_swapImage('Yungdrung','','../../graphics/yungdrung1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/yungdrung2.gif"
> alt="YUNG-DRUNG B?N" name="Yungdrung" width="94" height="15" border="0"
> id="Yungdrung" /></a></p>
> <p><a href="../articles.html" target="right"
> onmouseover="MM_swapImage('Articles','','../../graphics/articles1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/articles2.gif"
> alt="ARTICLES" name="Articles" width="94" height="15" border="0"
> id="Articles"
> /></a></p>
> <p><a href="../translations.html" target="right"
> onmouseover="MM_swapImage('Translations','','../../graphics/translations1.gif',1
> )" onmouseout="MM_swapImgRestore()"><img
> src="../../graphics/translations2.gif"
> alt="TRanslations" name="Translations" width="94" height="15" border="0"
> id="Translations" /></a></p>
> <p><a href="../publications.html" target="right"
> onmouseover="MM_swapImage('Publications','','../../graphics/publications1.gif',1
> )" onmouseout="MM_swapImgRestore()"><img
> src="../../graphics/publications2.gif"
> alt="PUBLICATIONS" name="Publications" width="94" height="15" border="0"
> id="Publications" /></a></p>
> <p><a href="../bibliography.html" target="right"
> onmouseover="MM_swapImage('Bibliography','','../../graphics/bibliography1.gif',1
> )" onmouseout="MM_swapImgRestore()"><img
> src="../../graphics/bibliography2.gif"
> alt="BIBLIOGRAPHY" name="Bibliography" width="94" height="15" border="0"
> id="Bibliography" /></a></p>
> <p><a href="../gallery.html" target="right"
> onmouseover="MM_swapImage('Gallery','','../../graphics/gallery1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/gallery2.gif"
> alt="GALLERY" name="Gallery" width="94" height="15" border="0"
> id="Gallery"
> /></a></p>
> <p><a href="../contribute.html" target="right"
> onmouseover="MM_swapImage('Contribute','','../../graphics/contribute1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/contribute2.gif"
> alt="CONTRIBUTE" name="Contribute" width="94" height="15" border="0"
> id="Contribute" /></a></p>
> <p><a href="../contacts.html" target="right"
> onmouseover="MM_swapImage('Contacts','','../../graphics/contacts1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/contacts2.gif"
> alt="CONTACTS" name="Contacts" width="94" height="15" border="0"
> id="Contacts"
> /></a></p>
> <p><a href="../links.html" target="right"
> onmouseover="MM_swapImage('Links','','../../graphics/links1.gif',1)"
> onmouseout="MM_swapImgRestore()"><img src="../../graphics/links2.gif"
> alt="LINKS" name="Links" width="94" height="15" border="0" id="Links"
> /></a></p>
> <table width="94" background="../../graphics/background.gif"
> id="pattern">
> <tr>
> <td nowrap="nowrap"> </td>
> </tr>
> </table>
> </div>
> </body>
> </html>
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|