By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,628 Members | 1,880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,628 IT Pros & Developers. It's quick & easy.

Q. Is there a javascript way to change all text on a web page ?

P: n/a
Hi,

I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type.

I'm unable to find any examples. Is it even possible?

Thanks,
George
Jul 23 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
George wrote:
Hi, I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type. I'm unable to find any examples. Is it even possible? Thanks,
George


My browser displays fonts the way I tell it to.
IN IE, I tell it to "ignore fonts".
I'd say it's one of those tricks you'll find isn't worth the effort.
Jul 23 '05 #2

P: n/a
George wrote on 02 jan 2005 in comp.lang.javascript:
I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type.

<body style='font-family:arial;>
blah
<table border=1><tr>
<td
onmouseover=
"document.body.style.fontFamily='courier'"
onmouseout =
"document.body.style.fontFamily='arial'"

Here
</td>
</tr></table>
blah

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #3

P: n/a
Evertjan. wrote on 02 jan 2005 in comp.lang.javascript:
George wrote on 02 jan 2005 in comp.lang.javascript:
I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type.

<body style='font-family:arial;>
blah
<table border=1><tr>
<td
onmouseover=
"document.body.style.fontFamily='courier'"
onmouseout =
"document.body.style.fontFamily='arial'"

Here
</td>
</tr></table>
blah


<body style='font-family:arial;'> sorry

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #4

P: n/a
On Sun, 2 Jan 2005 00:15:02 -0600, "Richard" <An*******@127.001>
wrote:
George wrote:
Hi,

I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type.

I'm unable to find any examples. Is it even possible?

Thanks,
George


My browser displays fonts the way I tell it to.
IN IE, I tell it to "ignore fonts".
I'd say it's one of those tricks you'll find isn't worth the effort.


Richard,

The page in question is not even to be posted for public viewing,
it'll be more of a tool, for me.
So no, you're wrong - for me, it's well worth the effort.

And it's not a 'trick', it's a statement, which I've not yet learned,
until now.

Read further into this thread, you'll learn something.

George
Jul 23 '05 #5

P: n/a
On 02 Jan 2005 10:25:00 GMT, "Evertjan."
<ex**************@interxnl.net> wrote:
Evertjan. wrote on 02 jan 2005 in comp.lang.javascript:
George wrote on 02 jan 2005 in comp.lang.javascript:
I want to be able to do a mouseover on a certain table cell, and get
all the text on the page to change to another font type.

<body style='font-family:arial;>
blah
<table border=1><tr>
<td
onmouseover=
"document.body.style.fontFamily='courier'"
onmouseout =
"document.body.style.fontFamily='arial'"

Here
</td>
</tr></table>
blah


<body style='font-family:arial;'> sorry

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Evertjan,

Thank you very much.
I really appreciate people like you, who are helpful to others, and
who share facts, as opposed to opinions.

I would like to learn about all those types of dhtml commands, from a
well organized web site, and would appreciate it if you could point me
to a good site.

w3schools.com is one I use, but do you know of a better one?

Thank you,
George

Jul 23 '05 #6

P: n/a
George wrote on 02 jan 2005 in comp.lang.javascript:
I would like to learn about all those types of dhtml commands, from a
well organized web site, and would appreciate it if you could point me
to a good site.

w3schools.com is one I use, but do you know of a better one?


Just look at examples all over the web and on this usenet NG's archive.

And learn, learn, learn.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #7

P: n/a
Evertjan. wrote:
George wrote on 02 jan 2005 in comp.lang.javascript:
I would like to learn about all those types of dhtml commands, from a
well organized web site, and would appreciate it if you could point me
to a good site.

w3schools.com is one I use, but do you know of a better one?

Just look at examples all over the web and on this usenet NG's archive.


The web is the worst place to try to learn JS from. This NG's archive
is, by far, the best place to peruse and learn though.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #8

P: n/a
JRS: In article <Xn********************@194.109.133.29>, dated Sun, 2
Jan 2005 18:42:56, seen in news:comp.lang.javascript, Evertjan.
<ex**************@interxnl.net> posted :
George wrote on 02 jan 2005 in comp.lang.javascript:
I would like to learn about all those types of dhtml commands, from a
well organized web site, and would appreciate it if you could point me
to a good site.

w3schools.com is one I use, but do you know of a better one?
Just look at examples all over the web and on this usenet NG's archive.


Well, as long as one can tell, reliably, the difference (all over the
Web/archive) between a good example and a bad one. That which is cited
in the newsgroup FAQ, or in News and not corrected later in the thread,
has a distinctly higher chance of being acceptable.

It's generally safe to assume that code on the Web gives at least
roughly the right answer, at least sometimes, using at least one browser
- in the opinion of its author, at least when he wrote it.
And learn, learn, learn.


s/, learn,/, think,/ <g>

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #9

P: n/a
Dr John Stockton wrote on 03 jan 2005 in comp.lang.javascript:
Just look at examples all over the web and on this usenet NG's archive.


Well, as long as one can tell, reliably, the difference (all over the
Web/archive) between a good example and a bad one.


The quality of examples, above the "does not work" level,
is not an absolutly "reliable" property.

Bad advice can be very instructive. If you only encounter "good" code,
perhaps self developed "bad" code does not get recognized.

This NG will show you all.

A good tutorial should also stress how NOT to programme.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.