473,395 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
9 1134
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gowhera Hussain | last post by:
Use This for Learning Only .... Do Not Try To Act Smart HACKING WITH JAVASCRIPT Dr_aMado Sun, 11 Apr 2004 16:40:13 UTC This tutorial is an overview of how javascript can be used to bypass...
25
by: Martin Walke | last post by:
Hi, This may seem like a client side problem but.... I have web pages that are made up of a number of javascript include files as well as 'in page' script. They all work fine running locally...
2
by: J?rgen Jensen | last post by:
I have made an asp-page. When pressing Submit, the form loads a javascript, for evaluating the input values. The asp-page is being reloaded from the javascript, to save the input-values. The...
6
by: Geoff | last post by:
Here's the situation. I have a static html page which we want to update to include some dynamic content. I want a counter that keeps track of the number of times anyone presses the "add" button,...
3
by: ICode | last post by:
Hi, all, I am currently updating links for a site almost daily. I have set the META tags to allow for no caching so that as soon as the site is updated on the server, the new changes can be...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
7
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving"...
3
by: Crazy Code Ninja | last post by:
Hi, I created a page with xhtml 1.0 transitional dtd, its validated correctly, but now the javascript wouldn't work under Opera (version 8.5 I think). It works under firefox. My code is as...
6
by: Karl | last post by:
Hi, Ok so on a given page I have 4 text links: see it in black see it in blue see it in red see it in green using the standard swap image behavior, clicking on one of the above links
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.