Hello All,
In the following script, all I need is the code so that the text that is displayed on the left (it is currently coming up centered - don't know why):
<font size=2 face="times new roman">
<input type=button name="add" style="position:absolute;top:425;left:560;background-color:white;color:blue;border-color:black;height:0;width:0">
Thank for your help!
~DarronActually, not centered, but 560 px from the left of your screen. Change to:
<input type=button name="add" style="position:absolute;top:425;left:10;background-color:white;color:blue;border-color:black;height:0;width:0">
To position 10 px from the left.To All,
The text box is diplayed exactly where I need it on the screen. However, the text in the box is centerd and I would like for it to be aligned left and not centered.
Sorry for the confusion.
~DarronHi,
Are you talking about the text that will be on the button? You keep mentioning a text box but I can't see one in your example code.
Anyway try
text-align:left;
in your style rule.
(BTW How are we going to see the button if it's height and width are 0px or have I got the wrong end of the stick again. (as usual))
PaulHello all,
To clarify what I'm talking about here is the complete code for the text box I'm referring to (I got this from The JavaScript Source):
<BODY>
<CENTER>
<TABLE BORDER="2" CELLPADING="2" CELLSPACING="2" BGCOLOR="brown">
<TR><TD BGCOLOR="blue">
<FONT SIZE="3" COLOR="white" STYLE="cursor:hand" ONMOUSEOUT="dis()" ONMOUSEOVER="chen()">
<B>Web Site Info.</A><BR></FONT>
</TD></TR>
</TABLE>
</CENTER>
<font size=2 face="arial narrow">
<input type=button name="add" style="position:absolute;top:50;left:400;background-color:yellow;color:black;border-color:black;height:0;width:0">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function chen()
{
add.value="Web Site\nJavaScript Source \nhttp://javascript.internet.com/\nPart of the INT Media Group\nhttp://www.internet.com\nThanks for visiting us\nCome back soon!"
add.style.height=120
add.style.width=260
}
function dis()
{
add.value=""
add.style.height=0
add.style.width=0
}
// End -->
</script>
or you can go to <!-- m --><a class="postlink" href="http://javascript.internet.com/messages/dynamic-message-window.html">http://javascript.internet.com/messages ... indow.html</a><!-- m --> and see it there.
See how the text is aligned center in the text box that pops up onMouseOver? What would have to be done to align the text left?
Thanks for your help.
~DarronTry this,
add.style.textAlign="left"
put it with the other add.style statements in function chen()
PaulThank you for the post! Works beautifully! Sorry for the confusion before. Is it possible to embed .gif files into a text box like that?
Thanks again!
~Darrondmason,
FYI: It looks as if you're assuming the user will be clicking on the button without having scrolled the page at all. Scroll down until your dynamic button is near the top of the page and your popup isn't visible.
This was the first thing I did, so I was looking for the results of the mouseover and couldn't find it.
Hope this helps.
AronyaAronya,
The example I gave isn't what is on MY actual page. that script I posted was from the website I got it from. On my page, the text box opens right under the text that triggers it.
Also, my page doesn't even scroll, so it would definitely be visible anywhere it popped up.
Sorry about though...didn't mean to confuse you.
Thanks for responding
Cheers!
~D
In the following script, all I need is the code so that the text that is displayed on the left (it is currently coming up centered - don't know why):
<font size=2 face="times new roman">
<input type=button name="add" style="position:absolute;top:425;left:560;background-color:white;color:blue;border-color:black;height:0;width:0">
Thank for your help!
~DarronActually, not centered, but 560 px from the left of your screen. Change to:
<input type=button name="add" style="position:absolute;top:425;left:10;background-color:white;color:blue;border-color:black;height:0;width:0">
To position 10 px from the left.To All,
The text box is diplayed exactly where I need it on the screen. However, the text in the box is centerd and I would like for it to be aligned left and not centered.
Sorry for the confusion.
~DarronHi,
Are you talking about the text that will be on the button? You keep mentioning a text box but I can't see one in your example code.
Anyway try
text-align:left;
in your style rule.
(BTW How are we going to see the button if it's height and width are 0px or have I got the wrong end of the stick again. (as usual))
PaulHello all,
To clarify what I'm talking about here is the complete code for the text box I'm referring to (I got this from The JavaScript Source):
<BODY>
<CENTER>
<TABLE BORDER="2" CELLPADING="2" CELLSPACING="2" BGCOLOR="brown">
<TR><TD BGCOLOR="blue">
<FONT SIZE="3" COLOR="white" STYLE="cursor:hand" ONMOUSEOUT="dis()" ONMOUSEOVER="chen()">
<B>Web Site Info.</A><BR></FONT>
</TD></TR>
</TABLE>
</CENTER>
<font size=2 face="arial narrow">
<input type=button name="add" style="position:absolute;top:50;left:400;background-color:yellow;color:black;border-color:black;height:0;width:0">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function chen()
{
add.value="Web Site\nJavaScript Source \nhttp://javascript.internet.com/\nPart of the INT Media Group\nhttp://www.internet.com\nThanks for visiting us\nCome back soon!"
add.style.height=120
add.style.width=260
}
function dis()
{
add.value=""
add.style.height=0
add.style.width=0
}
// End -->
</script>
or you can go to <!-- m --><a class="postlink" href="http://javascript.internet.com/messages/dynamic-message-window.html">http://javascript.internet.com/messages ... indow.html</a><!-- m --> and see it there.
See how the text is aligned center in the text box that pops up onMouseOver? What would have to be done to align the text left?
Thanks for your help.
~DarronTry this,
add.style.textAlign="left"
put it with the other add.style statements in function chen()
PaulThank you for the post! Works beautifully! Sorry for the confusion before. Is it possible to embed .gif files into a text box like that?
Thanks again!
~Darrondmason,
FYI: It looks as if you're assuming the user will be clicking on the button without having scrolled the page at all. Scroll down until your dynamic button is near the top of the page and your popup isn't visible.
This was the first thing I did, so I was looking for the results of the mouseover and couldn't find it.
Hope this helps.
AronyaAronya,
The example I gave isn't what is on MY actual page. that script I posted was from the website I got it from. On my page, the text box opens right under the text that triggers it.
Also, my page doesn't even scroll, so it would definitely be visible anywhere it popped up.
Sorry about though...didn't mean to confuse you.
Thanks for responding
Cheers!
~D