This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > April 2004 > nav bar in Java script and down state
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 |
nav bar in Java script and down state
|
|
|
| I know this has been talked about, i did a search but i still have some
questions.
I'm using DW MX and (everyone is going to cringe) but then copying the code
into FP (the person i'm doing this for wants it in FP).
As of now, the down bttn doesn't work in DW nor FP.
I have made a java script nav bar with an on,off and down states. I don't want
to use CSS since at this moment I don't have time to learn but plan to though
:--) I used the DW "insert navigation bar " to make my nav bar and the down
bttn doesn't work. (as it seems to have done for numerous other people).
I understand i should just use regular swap(rollover bttns) and then add this
code:
"Put this in script tags in the head of the document -
function P7_downImage() {
var g7="<imagename>"
var g7url="<pathname>"
if ((g7=MM_findObj(g7obj))!=null) {[[[[[[g7.src=g7url;}
}
and this on the <body> tag
onload="P7_downImage()"
Then on each page you would need to make two edits:
Set g7 to the *name* of the button (not the file name but the HTML name -
e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
"images/nav/button3.gif"), and bada bing, bada boom!"
Can you tell me what P7 is? (maybe a stupid question but i'm barely
understanding the code as is, so easily confused)
Also I don't want to need to edit each page, i was hoping to use the nav bar
as an include so is there a way of not havign to insert this on every page:
"Then on each page you would need to make two edits:
Set g7 to the *name* of the button (not the file name but the HTML name -
e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
"images/nav/button3.gif"), and bada bing, bada boom!"
thanks so much , pretty new to this stuff so bare with me.
| |
| Murray *TMM* 2004-04-21, 2:40 pm |
| For some strange reason, that code has been improperly pasted.
Change this -
function P7_downImage() {
var g7="<imagename>"
var g7url="<pathname>"
if ((g7=MM_findObj(g7obj))!=null) {[[[[[[g7.src=g7url;}
}
to this -
function P7_downImage() {
var g7="<imagename>"
var g7url="<pathname>"
if ((g7=MM_findObj(g7obj))!=null) {g7.src=g7url;}
}
> Can you tell me what P7 is?
P7 = Projectseven (http://www.projectseven.com/), the folks who taught me
this method.
Does that help?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"ing2" <webforumsuser@macromedia.com> wrote in message
news:c5jsp5$jar$1@forums.macromedia.com...
> I know this has been talked about, i did a search but i still have some
> questions.
> I'm using DW MX and (everyone is going to cringe) but then copying the
code
> into FP (the person i'm doing this for wants it in FP).
> As of now, the down bttn doesn't work in DW nor FP.
> I have made a java script nav bar with an on,off and down states. I don't
want
> to use CSS since at this moment I don't have time to learn but plan to
though
> :--) I used the DW "insert navigation bar " to make my nav bar and the
down
> bttn doesn't work. (as it seems to have done for numerous other people).
>
> I understand i should just use regular swap(rollover bttns) and then add
this
> code:
>
> "Put this in script tags in the head of the document -
>
> function P7_downImage() {
> var g7="<imagename>"
> var g7url="<pathname>"
> if ((g7=MM_findObj(g7obj))!=null) {[[[[[[g7.src=g7url;}
> }
>
> and this on the <body> tag
>
> onload="P7_downImage()"
>
> Then on each page you would need to make two edits:
>
> Set g7 to the *name* of the button (not the file name but the HTML name -
> e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
> "images/nav/button3.gif"), and bada bing, bada boom!"
>
> Can you tell me what P7 is? (maybe a stupid question but i'm barely
> understanding the code as is, so easily confused)
> Also I don't want to need to edit each page, i was hoping to use the nav
bar
> as an include so is there a way of not havign to insert this on every
page:
>
> "Then on each page you would need to make two edits:
>
> Set g7 to the *name* of the button (not the file name but the HTML name -
> e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
> "images/nav/button3.gif"), and bada bing, bada boom!"
>
> thanks so much , pretty new to this stuff so bare with me.
>
| |
| Murray *TMM* 2004-04-21, 3:00 pm |
| Yes, more or less. I am not sure I understand your example, but I could
certainly do this -
<script type="text/javascript">
function MS_noodle() {
alert("Where's DiMa?");
}
</script>
....
<a href="java script:MS_noodle()">Click for question</a>
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"ing2" <webforumsuser@macromedia.com> wrote in message
news:c60hko$r65$1@forums.macromedia.com...
> Thanks.
> So is P7 just a name the coder makes up and it's a name for the function?
So I could call P7 "buttoncode"?
>
| |
|
| Thanks.
So is P7 just a name the coder makes up and it's a name for the function? So I could call P7 "buttoncode"?
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|