www.webdeveloper.com
Results 1 to 14 of 14

Thread: text problems

  1. #1
    Join Date
    May 2005
    Location
    AUS
    Posts
    86

    text problems

    i've been trying to type text in two different areas in the same row...but it isnt working---using dreamweaver mx
    e.g.
    I am typing in the left column and i want to also type in right column...can anyone help?
    fda
    hmmm



    thanks

  2. #2
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    ooops...in the same row though...not in different as above

  3. #3
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    Please Help :d

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Content-Script-Type" content="text/javascript">
    <meta name="Content-Style-Type" content="text/css">
    <title>Example</title>
    </head>
    <body>
    <div>
    <textarea onkeyup="document.getElementById ('other').value = this.value"></textarea>
    <textarea id="other" readonly></textarea>
    </div>
    </body>
    </html>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    i'm a novice at js...so...is there any way you could describe to me of how to do it? i mean...where to put the script?? this is what my html doc looks like without inserting your js.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <link href="f.css" rel="stylesheet" type="text/css">
    <head><script type="text/javascript">
    var tempSrcHolder=null
    var isPlaying=false
    function toggleMusic() {
    var temp1=document.getElementsByTagName("bgsound")
    var temp2=document.getElementsByTagName("embed")

    if(temp1.length!=0){

    if(temp1[0].src==null){temp1[0].src=tempSrcHolder;isPlaying=true}
    else{tempSrcHolder=temp1[0].src;temp1[0].src=null;isPlaying=false}

    }else if(temp2.length!=){

    if(temp2[0].src==null){temp2[0].src=tempSrcHolder;isPlaying=true}
    else{tempSrcHolder=temp2[0].src;temp2[0].src=null;isPlaying=false}

    }
    else return false
    }
    </script>
    <script>
    var sound1="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/84303s.mp3"
    var sound2="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/286182.mp3"
    var sound3="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/293141.mp3"
    var sound4="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/296529.mp3"
    var sound5="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/295801.mp3"
    var sound6="file:///C|/Documents and Settings/melissa/My Documents/sheet music/believe.mid"
    var sound7="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/299198.mp3"
    var sound8="file:///C|/Documents and Settings/melissa/My Documents/sheet music/lastday.mid"
    var sound9="file:///C|/Documents and Settings/melissa/My Documents/sheet music/starshine.mid"
    var sound10="file:///C|/Documents and Settings/melissa/My Documents/School_05/VCD/306954.mp3"
    var x=Math.round(Math.random()*9)
    if (x==0) x=sound1
    else if (x==1) x=sound2
    else if (x==2) x=sound3
    else if (x==3) x=sound4
    else if (x==4) x=sound5
    else if (x==5) x=sound6
    else if (x==6) x=sound7
    else if (x==7) x=sound8
    else if (x==8) x=sound9
    else x=sound10
    if (navigator.appName=="Microsoft Internet Explorer")
    document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
    else
    document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
    </script>


    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    }
    body,td,th {
    color: #FFFFFF;
    }
    a:link {
    color: #FFFFFF;
    }
    .style3 {
    font-family: "Berlin Sans FB";
    font-size: 100px;
    }
    .style4 {
    font-family: "Britannic Bold";
    font-size: 25px;
    }
    .style5 {
    font-family: "Kunstler Script";
    font-size: 150px;
    }
    .style6 {
    font-family: Algerian;
    font-size: 20px;
    }
    .style7 {
    font-size: 12px;
    font-family: "Berlin Sans FB";
    }
    .style8 {
    font-family: Broadway;
    font-size: 100px;
    }
    .style9 {
    font-family: "French Script MT";
    font-size: 36px;
    }
    .style10 {
    font-family: "Goudy Stout";
    font-weight: bold;
    font-size: 50px;
    }
    .style11 {font-family: "Berlin Sans FB"}
    .style12 {
    font-family: "Arial Black";
    font-size: 50px;
    }
    -->
    </style></head>

    <body>
    <p><span class="style3">f</span> <span class="style4">r</span> <span class="style5">o</span> <span class="style6">s</span> <span class="style7">t</span> <span class="style8">b</span> <span class="style9">A</span> <span class="style10">r</span><span class="style6">k<span class="style12">~</span></span>
    </p>
    <p align="right"><span class="style11">Music<br>
    On Off </span></p>
    <div align="right"></div>
    </body>
    </html>

  6. #6
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    how do you actually insert text into a textarea? sorry...i know that's probly really basic...but i'm a novice at this...apologies on that...but any help would be greatly appreaciated

  7. #7
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Content-Script-Type" content="text/javascript">
    <meta name="Content-Style-Type" content="text/css">
    <title>Example</title>
    </head>
    <body>
    <div>
    <textarea onkeyup="document.getElementById ('other').value = this.value"></textarea>
    <textarea id="other" readonly></textarea>
    </div>
    </body>
    </html>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  8. #8
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    thanks for the code...but I dont know how to INSERT text into the textarea

  9. #9
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Content-Script-Type" content="text/javascript">
    <meta name="Content-Style-Type" content="text/css">
    <title>Example</title>
    
    <script type="text/javascript">
    <!--
    if (document.getElementById) onload = function () {
    	document.getElementById ('etoain').value = 'ETAOIN SHRDLU CMFGYP WBVKXJ QZ'
    }
    // -->
    </script>
    
    </head>
    <body>
    <div>
    <textarea id="etoain" readonly></textarea>
    </div>
    </body>
    </html>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  10. #10
    Join Date
    May 2005
    Location
    AUS
    Posts
    86
    still coming up blank...soz

  11. #11
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Perhaps if you explained a bit more fully just what it is that you are up to I could be a bit more helpful.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  12. #12
    Join Date
    May 2005
    Location
    AUS
    Posts
    86

    detaiLs~

    what i am having trouble with is this:
    i am trying to insert two blocks of text in one line in dreamweaver mx; one block on the left alignment and one block on the right alignment. the word "frostbark" LEFT, and the words "Music" On Off [on and off being on another line]...so what i'd like to know is HOW to insert a "text box" as such, so that these texts can be on the same line...when you sent me the textarea scripts... unfortunately i don't know how to edit those textareas i.e. insert text into each of them...so that's why i am having trouble with them... sorry about not explaining what i meant before... you must have bn pretty confused
    so...hopefully, i'm kind of explaining it ok now....
    sorry about before...if you could help me that would be great!
    thanks

    meLissa~

  13. #13
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    This is not a JavaScript question it is one for the CSS forum.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  14. #14
    Join Date
    Feb 2005
    Location
    USA
    Posts
    1,534

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles