PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Editable "onload" in body tag
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Editable "onload" in body tag

Réponse
 
LinkBack Outils de la discussion
Vieux 02/06/2008, 19h13   #1
gordonwd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Editable "onload" in body tag

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?

  Réponse avec citation
Vieux 02/06/2008, 19h30   #2
darrel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Editable "onload" in body tag

> 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


  Réponse avec citation
Vieux 02/06/2008, 19h42   #3
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Editable "onload" in body tag

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?
>


  Réponse avec citation
Vieux 02/06/2008, 20h41   #4
Walt F. Schaefer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Editable "onload" in body tag

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?
>>

>



  Réponse avec citation
Vieux 02/06/2008, 21h31   #5
gordonwd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Editable "onload" in body tag

[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.

  Réponse avec citation
Vieux 02/06/2008, 22h20   #6
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Editable "onload" in body tag

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.
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h13.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14337 seconds with 14 queries