How can I add the same code to every page???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using Microsoft Office Frontpage 2003.

I recently changed the color of my scroll bars and I would like to make the
change on every page without doing it one at a time.
How can I do this?

Apprecitation is Much Appreciated.
 
If you did this in an external style sheet, you just need to add one line of
code - the link to the style sheet.

For example: <link rel="stylesheet" type="text/css" href="yourstyle.css">
goes between <head> and </head> in code view.

If you didn't do the above, I suggest you do. Then if you can change the
styles/colours in one file instead of for example, 100 html pages, and the
change is applied to each and every page..

All you do then is publish the CSS file, rather than republish 100 pages.

The above is the alternative to having the <style> code written in every
page, in which case you'd need to change 100 pages and re-publish the lot.-

Each time you want to change or add to the styles (eg change link colours or
a 1000 other things) add them to the css file, and for every page with the
above line of code, that style will apply to the page.
 
I went to style sheets as soons as discovered them. They are a great
timemesaver for changing styles and looks of pages. And yoy can add or
change looks just by adding adding only a few lins to ONE external file.

I had to change several pages manually to remove the font tags th FP
likes to use for fomatting but it was worth it. Font tgs take prcdents
of styl directives.

If teh pages are in a FP web you can use FP to add external stylesheet
link to all or most pages if you have one line that appears in all head
tags.
Here's how to do it
Opn a page in HTML view. Identify the common line lets call it "<common
line>"

Choose the rplace option for HTML on all pages on the web and
Find: commomon line
Replace with: <common line><link rel="stylesheet" type="text/css"
href="mystyle.css">

Where mystyle.css is your stylesseet

...PC
 
As hard of time that IE gets for it's "security flaws" compared to other
browsers I've never understood why other browsers are not compatible with
style sheets and other things that IE will read?

Just an observation!!
 
If you're referring to Firefox or Opera, it's because they are standards
compliant. IE isn't. The CSS that produces colored scroll bars in IE is not
valid according to the W3C.
 
That's true, but it's a nice feature. The powers that be should make it a
standard. After all, the purpose is to give the site visitors the best
possible thing.

Wally S
 
other browsers are not compatible with style sheets and other things that
IE will read?
And a flawed one....

Things like colored scrollbars are an IE extension to CSS. Why would other
browser neccessarily adopt everything IE does?

If they did, then they would be as far behind in W3C reccomendations, and
capability as the 5+ years old IE browser is.

Bob Lehmann
 
give the site visitors the best possible thing.
You mean like a consistant, reliable experience, uncluttered with the goofy
eye candy that some so-called "artists" inflict on the visitors.

Take a look at the top 10 websites, and see how much of your "best possible
thing" is actually being used.

Bob Lehmann
 
Whether or not it is "goofy eye candy" is a matter of opinion. I use colored
scrollbars on pages that contain principally photos, and if my readers
thought it was in bad taste, I would definitely hear about it (and I do have
some fussy, outspoken readers, especially the ones that use my website as a
vehicle for publishing their photos).

In fact, my whole design (no great work of art) is based on suggestions from
readers (and things I read on this newsgroup).
It's a simple black, white, and gray. But on pages that showcase photos, I
use a seamless background and colored scrollbars that blend with the
background. I get compliments from my readers, and after all, they're the
ones that count, right?

Wally S
www.dipika.org
 
Well....I didn't make that statement to start a war on which web browser is
better. I understand that it is hard to get the full impact of someone's
feelings in their post since we can't hear tone-of-voice or things like
that.

Now back to the subject that was being discussed (colored scroll bars). Is
it possible to code so that other browsers will display a colored scroll
bar? If there is I would love to know how so any browser could display my
site the way I see it! Maybe it's not that big of deal to many people to
have colored scroll bars. If there is no way to make other browsers display
colored scroll bars and it is not going to hurt the way the browser
functions or compromise the security then it seems to me that IE has a
feature that other browsers don't and adding that capability would not make
them behind but would make them just as good or even better than IE. I
wouldn't consider adding that capability bowing to Microsoft but just plain
adding flexibility to the product.

Again...this is not a personal attack on anyone who posted about this and
none of what has been said here is personal.

Thanks
Jeff
 
It only works in IE 5.5 or above. None of the others have it. I agree with
you. It should be a choice available to everyone. In this case, I consider
Microsoft ahead of the others. I only use it on pages that showcase photos,
and I fail to see how it is "goofy eye candy" or how a gray scrollbar would
make the page look better. And anyway, if my readers like goofy eye candy,
that's their choice.

Wally S
www.dipika.org
 
Well I didn't make my first comments on the subject with the intention of
making a big deal of it. I would not consider it a number one feature that I
would want in a browser but the fact is it works in IE5.5+ and it don't on
other browsers. I would consider something that will improve the features or
functionality of anything a step forward. Maybe those who control the W3C
standards need to add that to the list.

Jeff
 
Back
Top