Professional Web Applications Themes

Java Script question - Macromedia Dreamweaver

Deborah: What are you trying to accomplish? -- 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.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "dcleare" <com> wrote in message news:bgtqap$k28$macromedia.com... ...

  1. #1

    Default Re: Java Script question

    Deborah:

    What are you trying to accomplish?

    --
    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.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "dcleare" <com> wrote in message
    news:bgtqap$k28$macromedia.com... 


    Murray Guest

  2. #2

    Default Re: Java Script question

    I am working on the water conservation page for our web site...there are
    several effects I would like to have...hoping to elicite more of a response
    for users...

    Anyway the page is not uploaded yet so I tried to attach the file for you to see, howver I got
    an error message that the type of file I am trying to upload is not allowed. I don't understand, it is a simple HTML page saved in my docs.

    For starters, towards the bottom of the page "Water Conservation...for everyones future..."
    I have a "onMouseOver="Describe...." and it works, but I have
    been unable to get the format for the text to work...looks pretty bland without
    formatting.

    Also, in the section of "Conservation Tips", I would like to add the "onMouseOver="Describe...."
    there as well, but I already have a "onMouseOver" for color changes. Can I have
    both involving the same area?

    I really appreciate any help that you can give me.

    TIA

    Deborah


    dcleare Guest

  3. #3

    Default Re: Java Script question

    Deborah:

    "onMouseOver="Describe...."

    What is this? I have no idea what you are talking about here?

    --
    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.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "dcleare" <com> wrote in message
    news:bgu353$8ac$macromedia.com... 
    response 
    to see, howver I got 
    allowed. I don't understand, it is a simple HTML page saved in my docs. 
    everyones future..." 
    without 
    "onMouseOver="Describe...." 
    I have 


    Murray Guest

  4. #4

    Default Re: Java Script question

    In the header tag it reads:

    <script language="JavaScript">
    function Describe (text) {
    if (!doent.getElementById) return;
    box=doent.getElementById("desc");
    box.innerHTML=text;
    }

    </script>


    In the body section, by the text I want the effect to work on it reads:


    <td height="80" valign="top"><font size="4" face="Arial, Helvetica" color="#0000FF"><strong><center>
    <b onMouseOut="Describe('~ ~ ~');"
    onMouseOver="Describe('Check out our water tip of the day');">
    Water Conservation...<i>for everyone's future...</i></b>
    </center></td>
    </tr>
    <tr><font size="4" face="Arial, Helvetica" color="#0000FF">
    <td width="125">&nbsp;</td>
    <td ID="desc" align="center">~ ~ ~</td>
    </font>
    </tr>



    This works, on mouse over I get the text I want...but I cant get the
    font format to alter the appearance of the text.

    Sorry, I know I am making this harder than I has to be....

    TIA,

    Deborah












    dcleare Guest

  5. #5

    Default Re: Java Script question

    I really appreciate your help...don't know what I am doing wrong, but I still could
    not get it to change the appearance of the text.

    I ended up using the ' getElementById ', then placed by style
    attributes within the javascript. It works now. See attached code.

    The page should be added to our web site by next week. I will
    appreciate any feed back I can get. I will say up front on need to work
    on my css and style sheets.

    Thanks again,

    Deborah

    <script language="JavaScript">
    function Describe (text) {
    if (!doent.getElementById) return;
    box=doent.getElementById("desc");
    box.innerHTML=text;
    box.style.textAlign="center";
    box.style.color="white";
    box.style.fontFamily="rockwell, arial black";
    box.style.fontSize="18px";
    box.style.backgroundColor="#0000FF";
    }

    </script>




    <script language="JavaScript">

    function Describe (text) {
    if (!doent.getElementById) return;
    box=doent.getElementById("desc");
    box.innerHTML=text;
    box.style.textAlign="center";
    box.style.color="white";
    box.style.fontFamily="rockwell, arial black";
    box.style.fontSize="18px";
    box.style.backgroundColor="#0000FF";
    }

    </script>



    dcleare Guest

  6. #6

    Default Re: Java Script question

    I'd need to see your page in order to recommend the best way of doing this.

    <p onmouseover="this.style.color='red'">this style</p>

    "this" refers to the containing tag, to change the text and change it to red.

    <p onmouseover="this.innerText='red text';this.style.color='red'">this style</p>

    Mick

    "\"dcleare\" webforumsuser"macromedia.com wrote:
     

    mick_white Guest

Similar Threads

  1. help with java script
    By mokitty in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 5th, 03:34 PM
  2. Replies: 2
    Last Post: February 5th, 03:33 PM
  3. Do you need to use Java script in ASP .Net?
    By Jerry in forum ASP.NET General
    Replies: 3
    Last Post: July 7th, 12:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139