Editable & quot; OnLoad & quot; in the body tag

I have a site based on a template, but I would like to add my own Javascript function calls to the attribute 'onload' of the 'body' tag on some pages. I know that this can be done by setting 'onload' as an 'editable attribute"in the model.

However, I have also a few 3rd - party, as PopMenuMagic of P7 extensions, which act by changing "onload" in the body of the template tag. I think that by setting this as editable attribute, I will then prevent changes to the model of these extensions of reproducing the pages based on the template.

Is there a way around this conundrum?

Here is the link: http://www.projectseven.com/support/answers.asp?id=129

--

Walt

"Murray * AS *" wrote in message
News:g21eup$pkj$1@forums. Macromedia.com...
> There are tutorials on the PVII site on how to do it.
>
> --
> Murray - ICQ 71997575
> Adobe Community Expert
> (If you * MUST * write me, don't don't LAUGH when you do!)
> ==================
> http://www.projectseven.com/go - DW FAQs, tutorials & resources
> http://www.dwfaq.com - DW FAQs, tutorials & resources
> ==================
>
>
> "gordonwd" wrote in message
> news:[email protected]...
> I have a site based on a template, but I'd like to add my own Javascript
> function
> calls to the attribute 'onload' tag 'body' on some pages. I have
> know that
> This is possible by setting 'onload' as an 'editable attribute' the
> model.
>>
> However, I have also a few 3rd - party, as PopMenuMagic extensions of
> P7.
> It works by changing "onload" in the body of the template tag. I think that by
> definition
> This as editable attribute, I will then prevent the changes made to the
> template by these extensions of reproducing the pages based on the
> model.
>>
> Is it possible around this conundrum?
>>
>

Tags: Dreamweaver

Similar Questions

  • How to insert an onload = "initialize ()" on the < body > tag "

    Hi, I just can't understand how can I insert an onload = "initialize ()" on the < body > tag without editing it after generating the code HTML. "

    Hi Victor,

    You can use the HTML code for head option to add the code.

    Kind regards

    Akshay

  • How to add a background outside the body tag

    Hi I have a html site normal I want to add a background outside the body tag, IE outside the main content and on the display window.

    gradient-outside-body-content.jpg

    Thank you

    And complementary:

    Give your #container background #fff (white) and a padding-about 200 px background color.

    The padding-bottom generates a white background for the 3 labels and footer.

    My example shows the problem on a green background.

    Edit your styles.css file:

    {body

    do-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    Color: #000;

    font-size:62.5%;

    line-height: 1.5em;

    background-image: url ("your_gradient_bg.png");}

    ...

    ...

    ...

    #container {}

    Width: 1024px;

    Auto margin: 0;

    padding-bottom: 200px;

    background-color: #fff ;}

  • Model Dreamweaver is still blocking the body tag?

    Hello

    I use a DW template with an editable and it blocks the body tag. I can't address the body with a div or class tag.

    Y at - it a possibility to use a model that does not block the body tag?

    Thanks for the help and support.

    Karsten

    First, you must define an editable tag attribute in your model for thetag.  Later, you will need change this attribute on the child pages.

    This article has a NOTE: with screenshots on how to do it.

    http://ALT-Web.com/articles/persistent-page-indicator.shtml

    Nancy O.

  • min-width of the body tag

    From what I've read in this forum, set the min-width in the body tag property must stop the text in the div #header displaced offline as browser window is tight--see this page from the project - www.iprezence.com/paintshop.  When this does not work I tried using min-width divs in the #header area but still have the problem. What is causing this min-width to fail or I asked incorrectly?

    Thank you

    There is nothing wrong with what you were doing.  It is only when your window is less than 862px, the text of the header down to the line below.

    Change min-width of 500px to 862px and your problem is solved.

    Nancy O.

  • How can I move a block of text from the head of <>tag area within the &lt; body &gt; tag box?

    I am retarget approximately 2500 html files and a block of text should be moved to the head of <>mark the surface of the < body > tag. It must immediately follow the < body > tag. Here is an example: < h3 > heading < / h3 > < p > A bunch of text here, blah blah < /p >.  I find the block using a regular expression < >(.*?) < p > h3, but do not know what to do after that.

    If you just want to move the

    and

    on theand in thethe following regular expression work:

    (

    [\s\S]*?

    )([\s\S]*))

    Replace in the field, use this:

    $2$ 1

  • loop over a list with &amp; quot; Insert &amp; quot; in the cfquery tag valid?

    looping over a list with 'insert' in the cfquery tag valid? He
    throws any errors and inserted into the table without any
    problems, but just wonder if it is possible to use since when I tried
    Select article twice in a cfquery, it executes only the first.

    < cfquery >
    Select the test in testdata

    Select othertest from differentdata
    < / cfquery >

    If it works, it is valid. Different from the db support different syntaxes on this issue. A way that would work for all db's

    insert into sometable
    (fields)

    Select somevalues
    from somewhere

    Union
    closing tags.

  • CF extra addition &lt; html &gt;, &lt; head &gt; and the &lt; body &gt; tags pages

    I had problems with my titles not appearing is not on my pages of CF. Finally, I looked at the source of the page in the browser and found that CF is the extra insertion < html >, < head > and < body > tags at the beginning of the pages. (see examples below). I'm sure it's the CF engine that did this because I took a cfm page and just change the extension of html and everything worked fine (except the CF code). There is no additional tag inserted and the titles appear. I also noticed that the CF engine seems to be adding the first line <! DOCTYPE HTML... >

    Does anyone know why this might be happening?

    Thank you

    David

    SEE Page - notice of the additional tags in red

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".


    <html >

    <head >

    <title >without title < /title >

    < /head >


    <body >



    < /body >

    < /html >

    <html>

    <head>


    "
    <style type="text/css"> ".

    <!--


    BODY
    {
    make-weight: normal;
    do-size: 10pt;
    do-family: Arial;
    background-color: white;
    text-decoration: none
    }


    Same page with the extension changed to html - code is a little different because the style sheet has not loaded because it uses a cfinclude

    <html>

    <head >


    "
    <cfinclude template="fdp_style_sheet.html"> ".


    "
    <meta http-equiv="Content-Type" content="text/html; charset = iso-8859-1"> " "

    <title >connection < /title >


    "<script type="text/javascript"> ".

    If ($_SERVER ["HTTPS"]! = "on")
    {
    header ("Location: https://".) $_SERVER ['HTTP_HOST']. ($_SERVER ["REQUEST_URI"]);
    Exit();
    }
    < /script >


    "<script language="JavaScript" src="webbug.js">< /script > " "

    < /head>


    "" <body onload= "writeBug();" marginHeight= "0" ' marginWidth do= '0' > ' "

    Take a look at your file Application.cfm or Application.cfc, you have probably the code in there (Application.cfc/cfm works first on each page request)

  • Mucow put the code between the &lt; / body &gt; tag and &lt; / html &gt;

    How can I put jquery inbetween the end body tag and put an end to the html in a mucow tag, not sure if im able to do this muse as pleaae help thanks

    It would be useful:

    http://Adobe-Muse.github.IO/MuCowDocs/#husing-jQuery

    Thank you

    Sanjit

  • How to add google remarketing code at the bottom of all pages before the closing &lt; / body &gt; tag in muse adobe

    I try to add the google remarketing code JUST before the < / body > tag to end on all my pages... they require would be at the exact spot. I tried it added via insert html and that place in the footer, but that did not work. I also tried 'page properties' 'metadata' html for the head, and that's not good either. I could go through ftp to each html page and add the code myself (125 pages) but then the next time I change and upload my site again he will crush it and is not a solution. Any help would be appreciated.

    It's googles exact statement:

    1. Place the code at the bottom of all the pages on your website, before closing </body> tag. If your site uses a common file for a footer, you can place the code snippet here rather than on each page of your Web site.

    Hi Austin,.

    Please refer to the following thread: How do I embed a Google's Remarketing tag closing "<\body> tag to all pages of Muse? "

    Kind regards

    Akshay

  • Model &amp; gt; Optional region - BODY tag

    Hello

    Is it possible to do an optional area inside the BODY tag?

    I want to put following line inside the body tag (but not on all pages!):
    "OnLoad =" load() "onunload =" GUnload () '... (code for Google Maps).

    I tried to insert the optional region but DW does not seem to accept it... y at - it another way around?

    I hope someone can help :-)

    MG04

    Thank you Walt!

    I used the 'Make attribute editable' under the menu edit

  • Lack &lt; body &gt; tag from my code?

    Hi, my server (domain Express / Parallels) won't let me edit my Web site online (in WYSIWYG mode) because it can't find the < body > tag. Everything works perfectly in the site that I created in iWeb - www.franhayterconsulting.co.uk, but does not at all to the one I have used Dreamweaver for - www.kateharrisconsulting.co.uk. Is there a genius out there that can help locate what I have done differently?

    As a beginner, iWeb and Dreamweaver are therefore useful for simple sites - but unfortunately the first sign of a problem and I'm naïve! I thank very you much for all the advice, very much appreciated indeed.

    Looks like the minimum structure for an HTML document

    Highlighted tags are not present in your document.

    Also have a look here http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.kateharrisconsulting.co.uk%2F

    GRAMPS

  • Change the image of the body on each page with CSS

    Hello

    I need to have a different background image for each page of this site (body)

    (1) I have a model now

    (2) I have a css file currently (Hardcover)

    I did a lot of research on how better do this including;

    (a) using the different body for each page ID.

    (b) using another rule of css for the body (inserted in th file AFTER the main related ccs leader)


    Because I'm using templates I don't see an easy way to do it (the header is largely locked) and have little control over the position of b) and identical to one) as the body, tag is also blocked. I have also considered the 'specify editable tag attributes in a template', but could not get this to work.

    There is something simple to do here, but I can't.

    Any sample / advice would be appreciated.

    Rick

    The easiest way is to have a CSS on every page like this:

    There is no other way to make everything simpler.

  • Adding a class to the body tab

    Hello

    "I learn css with dreamweaver cs3, there is an example in the book where some links will have an arrow if you are in a specific page for this, you put a class in the body tag: < body class =" visit ">, my question is: How can you do that and if you can do it while you're working with models."

    Thanks in advance

    > I meant a .dwt file do theeditable tag so I can put the class

    then follow my previous indications.
    Modify the .dwt file to make an "editable attribute' text for the
    Attribute Class in the body tag. Give it the desired default value.

    Then, open the pages of the child, and use edit-> template properties to change the
    value in each page of the child of the .dwt model.

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • In re marketing code enter the body

    We want to re market to people who visit our site and need to put some code in the body How do you this? Is it possible to muse?

    Hello

    According to Google, it must be the code just above.

    In MUSE, you can put the code to insert the HTML code, but there is no suitable place that is defined for the HTML code to insert, it will simply be added to your page inside the body tag code.

    For work, if you use FTP host (Third party / no Business Catalyst), you can export the site locally, and add the re marketing codes just above.

    Thank you

    Prabhakar Kumar

Maybe you are looking for

  • iMac is suspended when waking from sleep

    When I return to my iMac 21 inches for the wakes, I get my password from the screen and it does nothing but display the spinning beachball. It remains this way for an indefinite period. The only way out, as far as I know, is to do a power of the forc

  • E-print password reset problems

    I received the email to reset my passwotd.  the address bar looks as if she is looking but never is. It sits right on the page with the new password and not progress further.

  • Lonely spider bugs arise

    Hello Sometimes, I am faced with a bug on Vista Spider Solitaire: it keeps telling me there is not any movement as possible, even if it is a mistake.I use Windows Vista Home Premium SP2 (64-bit).I took one last time, it happened to screenshot. Is the

  • new version of Itunes

    If I download a newer version of Itunes, what happens to the music I, ve already stored in the library?

  • critical process error msg is dead

    I was with my pc hp pavilion dv7 laptop, then a loud beeping sound started with a popup saying it was any suspicious activity to the difficulty to call a microsoft agent that I did.  The 'agent' says my computer has been hacked so he has access to co