|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a template-based site, but would like to add my own Javascript function
calls to the 'onload' attribute of the 'body' tag on certain pages. I know that this can be done by setting 'onload' as an "editable attribute" in the template. However, I also have some 3rd-party extensions, such as PopMenuMagic from P7, that work by modifying 'onload' in the template body tag. I think by setting this attribute as editable, I will then be preventing changes made to the template by these extensions from propogating to the pages based on the template. Is there any way around this conundrum? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> Is there any way around this conundrum?
You want to avoide using the body onload event as much as you can for this very reason...multiple scripts might need to access it. There are a variety of javascript based options. I've used this one: http://simonwillison.net/2004/May/26/addLoadEvent/ -Darrel |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
There are tutorials on the PVII site about how to do this.
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "gordonwd" <webforumsuser@macromedia.com> wrote in message news:g21d90$nqb$1@forums.macromedia.com... >I have a template-based site, but would like to add my own Javascript >function > calls to the 'onload' attribute of the 'body' tag on certain pages. I know > that > this can be done by setting 'onload' as an "editable attribute" in the > template. > > However, I also have some 3rd-party extensions, such as PopMenuMagic from > P7, > that work by modifying 'onload' in the template body tag. I think by > setting > this attribute as editable, I will then be preventing changes made to the > template by these extensions from propogating to the pages based on the > template. > > Is there any way around this conundrum? > |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Here's the link: http://www.projectseven.com/support/answers.asp?id=129
-- Walt "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message news:g21eup$pkj$1@forums.macromedia.com... > There are tutorials on the PVII site about how to do this. > > -- > Murray --- ICQ 71997575 > Adobe Community Expert > (If you *MUST* email me, don't LAUGH when you do so!) > ================== > http://www.projectseven.com/go - DW FAQs, Tutorials & Resources > http://www.dwfaq.com - DW FAQs, Tutorials & Resources > ================== > > > "gordonwd" <webforumsuser@macromedia.com> wrote in message > news:g21d90$nqb$1@forums.macromedia.com... >>I have a template-based site, but would like to add my own Javascript >>function >> calls to the 'onload' attribute of the 'body' tag on certain pages. I >> know that >> this can be done by setting 'onload' as an "editable attribute" in the >> template. >> >> However, I also have some 3rd-party extensions, such as PopMenuMagic from >> P7, >> that work by modifying 'onload' in the template body tag. I think by >> setting >> this attribute as editable, I will then be preventing changes made to the >> template by these extensions from propogating to the pages based on the >> template. >> >> Is there any way around this conundrum? >> > |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
[q]Originally posted by: Newsgroup User
There are tutorials on the PVII site about how to do this. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== Thanks, Murray. I had looked at the KB there, but the question for that solution didn't make it sound like it was related to my problem. Once I found it, I understood it and will implement it that way. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
You're welcome.
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "gordonwd" <webforumsuser@macromedia.com> wrote in message news:g21lbp$39t$1@forums.macromedia.com... > [q]Originally posted by: Newsgroup User > There are tutorials on the PVII site about how to do this. > > -- > Murray --- ICQ 71997575 > Adobe Community Expert > (If you *MUST* email me, don't LAUGH when you do so!) > ================== > http://www.projectseven.com/go - DW FAQs, Tutorials & Resources > http://www.dwfaq.com - DW FAQs, Tutorials & Resources > ================== > > Thanks, Murray. I had looked at the KB there, but the question for that > solution didn't make it sound like it was related to my problem. Once I > found > it, I understood it and will implement it that way. > |
|
![]() |
| Outils de la discussion | |
|
|