/    Sign up×
Community /Pin to ProfileBookmark

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[RIGHT]hmmm[/RIGHT]

?

thanks

to post a comment
JavaScript

13 Comments(s)

Copy linkTweet thisAlerts:
@melA_16authorMay 27.2005 — ooops...in the same row though...not in different as above :rolleyes:
Copy linkTweet thisAlerts:
@melA_16authorMay 28.2005 — Please Help :d
Copy linkTweet thisAlerts:
@CharlesMay 28.2005 — <!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>
Copy linkTweet thisAlerts:
@melA_16authorMay 29.2005 — 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>
Copy linkTweet thisAlerts:
@melA_16authorMay 30.2005 — 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 ?
Copy linkTweet thisAlerts:
@CharlesMay 30.2005 — &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;meta name="Content-Script-Type" content="text/javascript"&gt;
&lt;meta name="Content-Style-Type" content="text/css"&gt;
&lt;title&gt;Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
&lt;textarea onkeyup="document.getElementById ('other').value = this.value"&gt;&lt;/textarea&gt;
&lt;textarea id="other" readonly&gt;&lt;/textarea&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@melA_16authorMay 30.2005 — thanks for the code...but I dont know how to INSERT text into the textarea
Copy linkTweet thisAlerts:
@CharlesMay 30.2005 — &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;meta name="Content-Script-Type" content="text/javascript"&gt;
&lt;meta name="Content-Style-Type" content="text/css"&gt;
&lt;title&gt;Example&lt;/title&gt;

&lt;script type="text/javascript"&gt;
&lt;!--
if (document.getElementById) onload = function () {
document.getElementById ('etoain').value = 'ETAOIN SHRDLU CMFGYP WBVKXJ QZ'
}
// --&gt;
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
&lt;textarea id="etoain" readonly&gt;&lt;/textarea&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@melA_16authorMay 30.2005 — still coming up blank...soz :o
Copy linkTweet thisAlerts:
@CharlesMay 30.2005 — Perhaps if you explained a bit more fully just what it is that you are up to I could be a bit more helpful.
Copy linkTweet thisAlerts:
@melA_16authorMay 30.2005 — 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.... :o

sorry about before...if you could help me that would be great!

thanks ?

meLissa~
Copy linkTweet thisAlerts:
@CharlesMay 30.2005 — This is not a JavaScript question it is one for the CSS forum.
×

Success!

Help @melA_16 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...