View Full Version : Huge Help Here!!!
polliwogfrog
10-25-2002, 03:47 PM
I need help like there's no tomorrow!!!
My husband was messing around in my pc, and
UN-INSTALLED my 1st page program! (And just when I was getting DC's code...AAARRRGGGHHHH!)
Please, where can I find it? I went to evrsofts' website, but is unavailable!
I am in middle of two great projects..please help me if you can!
Thnaks so much!
polliwog
:joy:
goto to it's mirror site http://www.blueits.de/1stpage2.zip
polliwogfrog
10-25-2002, 03:57 PM
Josh,
did anyone tell you today that you're loved????
WELL, I'M TELLING YOU THAT YOU ARE!!!
Thanks SOOO MUCH!
polli
:joy:
DCElliott
10-25-2002, 04:32 PM
Originally posted by polliwogfrog
My husband was messing around in my pc, and
UN-INSTALLED my 1st page program! Heh, heh. Sounds like he needs a whack up the side of the head. Or put his typing fingers in here: http://developers.evrsoft.com/forum/images/smilies/M11IPTE6.GIF
DCE
polliwogfrog
10-25-2002, 04:49 PM
LOL DC!
His "excuse" was we needed to free up some
space, and "he didn't ever use that program, so
why was it there?"
I think I'll just verbally pound him, as he is an Artist
and I need to save his fingers! LOL
Your code is really helping too, you really
went out of your way to help, you are an
excellent man! If I weren't married, I'd chase ya
myself! (winks and smiles) That is, if you like blondes
with a housefull of frog vivariums, and loads of crickets
chirping all night (to feed the lil' frogs!)
Polli
:love:
DCElliott
10-25-2002, 06:47 PM
LOL
I always knew Pollywogs were a bit on the frisky side . . .
I've been giving your design some thought. I am planning on something similar myself so I have enjoyed the chance to do a bit of prototyping - I will be reusing most of the stuff I am sending you (minus the froggie pictures) so don't think you are putting me out.
I have appended another froggie site example based on the black background you wanted. Check out how the layers slide around as you resize the window.
The zip has paths stored in it so you should unzip it in your c:\ directory and it will have the path c:\web\polly\
polly.html is the page and polly.css is the stylesheet. c:\web\polly\images\ should have your images in it.
Enjoy . . . it's been fun.
DE
(and I still think you should smack him the side of the head - especially if his fingers are so talented (suppressing a lascivious smirk ))
Drat - the attachment didn't stick. Try again here.
polliwogfrog
10-25-2002, 07:32 PM
DC,
All that I can say is.....
I'm really left breathless.
That page is sooo beautiful, I feel the ones I'm building are trash.
:( Don't feel bad, thats' not my intention with that statement.
Its' just...well....You are showing me my HUGE limitations and
I'm just going to have to work even harder to make this website!
As an example, I don't know HOW you took that image of the
agalychnis callidryas (greek for red-eyed treefrog) and made it
into a background! Its' awesome!
Another thing, as I am looking over the file you sent me earlier today, I cannot find where yoy set that lovely green w/yellow
"stand-up" font. I have soooo many questions....and don't wish to bore you of so much more grasp on dhtml and java, etc....
with petty questions.
I come here because the message boards I've subscribed to at
html sites don't ever answer my (probably silly) questions. Josh and you always run to my rescue, and Boris has been known to
be kind to me as well.
I am going to go over your new page code with a "fine-toothed comb" and try to understand what you've done.
DC, its really great! I can't say enough about the set-up.
Its' just what I wanted!
humbly,
Polliwog (Nichole)
P.S. Guys like you are ALWAYS taken anyway! An intelligent woman always snatches you guys...that's how I got MY hubby!
:joy:
DCElliott
10-25-2002, 08:14 PM
Polly
You really have to look at the polly.html and polly.css files side by side. The CSS file determines how the HTML file will look in a number of ways.
HTML has selectors - the tags we wrap around text. Ordinary HTML has default ways that it treats text depending on the tag. CSS allows us to be more explicit about how we want the text wrapped in these tags to look. This is known as separating content from presentation. You will notice no <FONT> tags in the HTML I sent. The font face and size is determined in the CSS. I tell the HTML to look for styles with this code in the <HEAD> section: <LINK REL="StyleSheet" HREF="polly.css" TYPE="text/css"> Lets look at the BODY selector and associated style:BODY
{ background : Black url(images/frog_bkgrnd.jpg) no-repeat fixed 50% 50%;
color: White;
scrollbar-face-color:#000000;
font : .9em Verdana, Lucida, Geneva, Helvetica, sans-serif;
}Here is what is going on. When the browser sees the BODY tag in the HTML it takes the information on the body from the CSS file. First the background - it is black, has an image url(images/frog_bkgrnd.jpg) that is not repeated, is fixed so that text scrolls over it, and is centred in the page 50% down and 50% across. The basic text color is white, the scrollbars are black (on IE only - Netscape doesn't support that property) and I have specified a preferred font and several substitutes.
The next section sets up the 4 main divisions: top, left, middle and right. This code has been adapted from sites Blue Robot (http://bluerobot.com/web/layouts/layout3.html) Glish (http://www.glish.com/css/7.asp) and others. (So you see, I have been the beneficiary of other people's hard work and just want to pass it around). These divisions are "blocks" so they can be absolutely positioned in the browser window. Each one has a unique id like "#middle" in the CSS that is called in the HTML like this <DIV id="middle"> So middle is positioned down 130px and over 20%. There is a bit of trickery involved because not all browsers handle CSS well. There is some annotation in the CSS as to what is going on.
You see in the CSS a list of all the heading types. I can apply one style to them all and they come out looking the same except for size. The weight of the block at the left and the underlines changes because I have used "em" as the unit of measure there. ems are a function of the browser font size. The headings are a hierarchy of diminishing font sizes and therefore diminishing ems. By making the border widths in ems, they scale the same way - kinda neat, eh? (DE betrays the fact he is Canadian)
Thats it for now. We'll go from the buttons on down some other time. You have to absorb a lot and a three column layout is a tough way to learn CSS, let me tell you!
Have fun. Experiment. Ask stupid questions.:p
DE
PS - about that standup font. That is unfortunately another IE only features using a "filter". #title {
display:block;
position: absolute;
top: 20px;
left: 3%;
width:50%;
font: 900 24pt Times, serif;
color: #0b7;
padding: 0px 10px 10px 2%;
border:thin;
filter:shadow(color=#e7ff11, direction=135);
line-height : .8em;
} is the style that is applied to the title. At the bottom is the shadow filter that creates the effect. In the HTML the title is specified like so:<DIV id="title">
Pollywog's title goes here
</DIV> so that style gets applied to that text, positioning it, determining the font, and applying the filter. By the way, filters only work on blocks and have to have at least a height or width to give them "space" to work. Enough - ya gotta walk before you can run.
BTW thanks for the javascript site reference. They have a good CSS section you should check out (http://www.javascriptkit.com/dhtmltutors/css1.shtml). . .
DCElliott
10-26-2002, 08:51 AM
The following code should go in at the bottom of the LEFT DIV just above where you see the <!-- <<<< Right >>>> --> comment. Remove the <IMG> tag that points to "images/u10.jpg" because that is being replaced. <!-- Froggie reflection graphic -->
<applet code=Lake.class id=Lake width=144 height=160 >
<param name=image value="images/u10.jpg">
<param name=href value="http://www.javascriptkit.com">
</applet><BR>
Free Java applets provided by<BR>
<a class="link" href="http://javascriptkit.com">JavaScript
Kit</a>
<!-- Reflection graphic end-->
Unzip and place the lake.class in your \polly directory. This java is NOT my creation - it was provided through the Javascripts (http://www.javascriptkit.com) site. (Thanks guys for sharing :) )
Have fun!
DE
polliwogfrog
10-29-2002, 12:14 PM
Thank you once again DC,
I am going to have to move along with the CSS
learning right away! I have been thinking about it,
but so busy with dhtml did not make "time".
I can see by your reply that one is no good without
the other (had an inkling) or at least makes the
fluidity of one incompetent without use of other.
(dhtml w/o css=crap page) LOL!
Glad you liked the scriptkit site. I go there a lot
and read, just to get a grasp on what it does,
or looks like, when d/l codes.
I printed + saved your reply above, and am going to
start over from there and afore-hand letters from you
to get a better looking website.
Thanks is all I can say,
and the hope that soon I'll be saying
"Come see this neat website!!!"
:joy:
polli
DCElliott
10-29-2002, 06:45 PM
Oh favourite froggie
You are quite right, DHTML is soooo much easier with CSS. In fact, you can do all sorts of things without a stitch of javascript.
Paste this silliness into your 1stPage ans see what it does.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Aggravation</title>
<style>
<!--
A.button
{ display:block; width:10em; height: 1.2em; padding:3px;
text-align: center; text-decoration: none;
color: #3163CE; background: #ffcc33;
font : bold 10pt courier;}
A.button:hover, A.button:active {position: relative; left:80%;}
-->
</style>
</head>
<body>
<a class="button" href="http://hometown.aol.com/polliwogsoonfrog/index.html" title="ribbitt ribbitt">Catch me =)</a>
</body>
</html>
Dynamic effect and positioning - look ma - no hands!
Zero Angel
10-29-2002, 09:17 PM
CSS contextual selectors are more powerful. In this example, all links inside of [<div class="nav">] will be rendered as buttons.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Aggravation</title>
<style>
<!--
.nav a { display:block; width:12em; height: 1.2em; padding:3px;
text-align: right; text-decoration: none;
color: #3163CE; background: #ffcc33;
font : bold 10pt courier;
border: 1px solid #fff; }
.nav A:hover,.nav A:active { background: #004488; }
-->
</style>
</head>
<body>
<div class="nav">
<a href="http://hometown.aol.com/polliwogsoonfrog/index.html" title="ribbitt ribbitt">I'm a link</a>
<a href="http://hometown.aol.com/polliwogsoonfrog/index.html" title="ribbitt ribbitt">I'm another link</a>
<a href="http://hometown.aol.com/polliwogsoonfrog/index.html" title="ribbitt ribbitt">traaaalala</a>
</div>
<br><br>
<a href="http://hometown.aol.com/polliwogsoonfrog/index.html" title="ribbitt ribbitt">I'm a normal link</a>
</body>
</html>
DCElliott
10-30-2002, 08:11 AM
Zero, you Angel, yer absodamnlutely right! And this is how I have implemented it on my pages. The nav section links are all styled differently as buttons, while "normal" links are styled as bold with no text decoration and have a yellow background when hovered or active.
CSS allows you to turn what is normally an inline element <A> into a block-level element which then allows you to specify height, width, positioning and the like. This means that you can have content that looks very differentl depending on what <DIV> of the document it appears within.
Another important CSS point. You may apply styles to selectors several times. For example:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CSS example</title>
<style type="text/css">
<!--
/* position and size */
body {margin:0px; padding:0px; border:none;}
div {height:auto; width: auto; margin:0 1%}
#top {height:110px; width:auto; text-align:center; margin:5px 1% 5px 1%;}
#nav {position:absolute; top:130px; right:0%; min-width:90px; width:18%; text-align:center; z-index:1;}
#main {position: relative; top:10px ; left: 0px; width:auto; margin-right:20%; z-index:2; padding:1%; border:0;}
/* colors */
body {background:cornflowerblue; color:lemonchiffon;}
a {text-decoration: none; color:darkslategray;}
a:hover, a:active {background:lightgreen;}
#top {background:indigo; color:gold; border: thick dotted crimson;}
#nav {background:cadetblue; border: 2px outset darkslateblue;}
#main {background: lavender; color:darkslategray;}
hr {color:darkslateblue; background:darkslateblue; /*need both to work in different browsers*/}
img {border:none;}
/*fonts*/
body {font:normal normal 1em/1.2em verdana, helvetica, arial, sans-serif;}
a {font:normal bold 1em/1.2em verdana, helvetica, arial, sans-serif;}
a:hover, a:active {font:normal bold 1em/1.2em verdana, helvetica, arial, sans-serif;}
b a {font-style:italic;}
#top {font:normal bold 48pt/54pt times, serif;}
#nav {font-size:10pt; line-height:12pt;}
#nav a {font : bold 10pt courier;}
#nav address {font-size: smaller;}
/* special features */
#nav a { display:block; width:auto; height: 1.2em; padding:3px;
text-align: center; text-decoration: none;
color: #3163CE; background: #ffcc33;
margin:2 10% 2 10%;
border: 3px outset #fc3; }
#nav a:hover, #nav a:active {border: 3px inset #fc3; }
-->
</style>
</head>
<body>
<div id="top">Just an example</div>
<div id="main"><p>"Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Normal link context: <a href="fake">Free Latin lessons</a></p>
<p><b>In a bolded sentance: <a href="fake">Free Latin lessons</a><b></p>
</div>
<div id="nav">
::Navigator::
<hr />
<a href="blah">blah</a>
<a href="blah">blah</a>
<hr />
<address>Address and Last updated date</address>
<p>
<a style="display:inline; background:transparent; height:auto; width:auto; border:none;" href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-html40"
alt="Valid HTML 4.0!" height="31" width="88"></a>
</p>
</div>
</body>
</html>
By grouping structural styles, font styles, and color styles separately, you can conveniently edit different aspects of your document (documents if it is a linked stylesheet) in a global fashion. If you learn to separate your code like this, you can completely change a css template for a site in only a few minutes and have something that looks completely different.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.