Communications Network
Vast Empire  -  New Posts  -  Search  -  Statistics  -  Login 
 
ComNet > Engineering Corps > Archived Engineering Corps ComNet > Basic DHTML
 
 
 
Author
Topic:  Basic DHTML
Kiption
ComNet Novice
 
Kiption
 
[VE-ARMY] Gunnery Sergeant
[VE-VEEC] Executive Officer
 
Post Number:  64
Total Posts:  152
Joined:  Jan 2002
Status:  Offline
  Basic DHTML
July 6, 2005 12:16:06 AM    View the profile of Kiption 
So i don't really know what a lot of you know about this type of stuff in the first place, but I guess there's a good place to start and there's a bad place to start.  Good place to start is here, bad place would be when you pay for it. 

I'm assuming that most of you have some sort of HTML experience, and I mean with a notepad.  The whole WYSIWYG approach is good and all (when you're 6 and barely know how to type), but there comes a time when you need to learn how to do things by hand.  I use gVIM btw, which is probably more powerful than most of you need, not to mention the pain in the ass known as a learning curve.  EditPlus or NotePad+ or whatever should suffice.  Don't ask me where to find them, downloads.com is your friend. 

So let's start off with a simple thing, and hopefully I'll get more time later to become more complicated. 


1  <html>
2    <body>
3
4      <p id="firstParagraph">This is a very nice paragraph about
5      something more than nothhing.  What is it that they usually
6      say, "Call me Kip".  Hello World. And all that</p>
7
8    </body>
9  </html>


So a crappy page.  We've all made them.  I've made hundreds of them.  There are probably two things that I've done here that most of you will never do.
1) I've actually closed the

tag.  This is more for completeness then anything else.  Most of the new HTML specs (XHTML to be precise) require that you close all tags. 
2) I've named the p tag. 

The id="firstParagraph" allows me to manipulate the tag and make changes to it with things like CSS.  It also allows me to call functions on it with JavaScript.  And now I've just realized that I may have gone too far and named things that you're not used to yet.

Now this is going to take longer to write than I really wanted, but if you're gonna do something, do it right the first time.

CSS - Cascading Style Sheets.  This is basically a sheet that contains all the style.  All that crap you used to do with tags like <font> and well even the <u> stuff is now gone and should stay dead and buried.  Enter CSS.  The thing that puts all that style crap in one place, making the html easier to read and making changing the styles so much easier. 

JavaScript - You know all that cool stuff that goes on a webpage and ... No that's called flash.  This is the old way of doing cool stuff, before macromedia bombarded us with the bloat that is flash.  It used to take talent to make that cool page, now everyone with a stolen piece of software can do it.  But this isn't a rant, it's a lesson. 

By your powers combined, I AM DHTML!!!!! GO C...

So let's do something interesting.  The downside is we're gonna need some more HTML, and I'm gonna need a cup of tea.


1  <html>
2    <head>
3
4      <style>
5
6        #firstParagraph
7        {
8          background-color: black;
9          color: white;
10          font-family: arial;
11          font-size: 10pt;
12        }
13
14        #firstParagraph:first-letter
15        {
16          font-size: 18pt;
17          font-weight: bolder;
18        }
19
20      </style>
21     
22    </head>
23
24    <body>
25
26      <p id="firstParagraph">This is a very nice paragraph about
27      something more than nothhing.  What is it that they usually
28      say, "Call me Kip".  Hello World. And all that</p>
29
30    </body>
31  </html>


So I'll quickly explain this and then stop for the night.

Now there are new things.  Some you have seen before and I was just too lazy to put in the first example.  Some you've seen but don't know much about, and some well...

So we have style tags now.  This is how CSS is specified for the most part.  Inside we have two small sections of code that define two styles.  You'll notice that they have the same name as our paragraph below, but with a # in front of them.  Coincidence? Only if I believed in that nonsense.  Basically we're telling the browser that we're going to explain how to draw anything called "firstParagraph". 

The second style is a bit more fun.  It's basically telling the browser what to do with the first-letter (clever naming huh?) of anything called "firstParagraph". I hope the rest of the style information is a bit more self explanatory.  Otherwise we have bigger issues at hand. 

Please feel free to ask questions, or ask for more info.  If you're going to bitch about my spelling, you can bite me.
 
-----------------------
Just another pretty face....
Hunter Emnis
ComNet Initiate
 
Hunter Emnis
 
[VE-ARMY] Private First Class
 
Post Number:  137
Total Posts:  407
Joined:  May 2005
Status:  Offline
  RE: Basic DHTML
July 6, 2005 6:40:16 AM    View the profile of Hunter Emnis 
Interesting.... even though i knew that

Isnt that a little too basic??????
 
-----------------------
HUnter EMnis

"Combine self-hate with pride,
a leader with a follower,
seriousness with immaturity,
smartness with idiocy,
merciful with relentlessness,
a friend with an enemy.
Combine two opposites,
and in the middle,
Yillis
ComNet Cadet
 
Yillis
 
[VE-ARMY] Lance Corporal
[VE-VEEC] Gaming Reporter
 
Post Number:  245
Total Posts:  1598
Joined:  Mar 2005
Status:  Offline
  RE: Basic DHTML
July 6, 2005 8:15:39 AM    View the profile of Yillis 
where the hell do you thinnk he should start? Advanced tags?
 
-----------------------
Lance Corporal Yillis
-=Lancer Squad=- -=ASL=- -=Moonbeam=-
ASL/LCPL Yillis/2SQD/2PLT/1COM/1RGT/1BAT/VEA/VE/Tadath [LoR] [WM]
Kiption
ComNet Novice
 
Kiption
 
[VE-ARMY] Gunnery Sergeant
[VE-VEEC] Executive Officer
 
Post Number:  66
Total Posts:  152
Joined:  Jan 2002
Status:  Offline
  RE: Basic DHTML
July 6, 2005 10:15:40 PM    View the profile of Kiption 
Anyone can bitch.  What do you want to see how to do then?


 
-----------------------
Just another pretty face....
Kiption
ComNet Novice
 
Kiption
 
[VE-ARMY] Gunnery Sergeant
[VE-VEEC] Executive Officer
 
Post Number:  74
Total Posts:  152
Joined:  Jan 2002
Status:  Offline
  RE: Basic DHTML
July 7, 2005 10:45:44 PM    View the profile of Kiption 
Please criticize me, I'm more than willing to fix what i've apparently done wrong. 

Wanna learn how to break the ComNet? I'm your guy.  Problem is if i break it then i won't be able to write scripts on here anymore.


 
-----------------------
Just another pretty face....
Verastinian Republic - Almighty Dictator

"If in physics there's something you don't understand, you can always hide behind the uncharted depths of nature. You can always blame God. You didn't make it so complex yourself. But if your program doesn't work, there is no one to hide behind. You cannot hide behind an obstinate nature. If it doesn't work, you've messed up." -- Dijkstra
Yillis
ComNet Cadet
 
Yillis
 
[VE-ARMY] Lance Corporal
[VE-VEEC] Gaming Reporter
 
Post Number:  287
Total Posts:  1598
Joined:  Mar 2005
Status:  Offline
  RE: Basic DHTML
July 8, 2005 4:05:37 AM    View the profile of Yillis 
that'd be fun
 
-----------------------
Lance Corporal Yillis
-=Lancer Squad=- -=ASL=- -=Moonbeam=-
ASL/LCPL Yillis/2SQD/2PLT/1COM/1RGT/1BAT/VEA/VE/Tadath [LoR] [WM]
Hunter Emnis
ComNet Cadet
 
Hunter Emnis
 
[VE-ARMY] Private First Class
 
Post Number:  202
Total Posts:  407
Joined:  May 2005
Status:  Offline
  RE: Basic DHTML
July 8, 2005 6:35:59 AM    View the profile of Hunter Emnis 
I am sorry, I was really stupid yesterday, well more stupid than usual, in more places than one... so I apologize I am pretty sure lot's of people can learn from this
 
-----------------------
HUnter EMnis

"Combine self-hate with pride,
a leader with a follower,
seriousness with immaturity,
smartness with idiocy,
merciful with relentlessness,
a friend with an enemy.
Combine two opposites,
and in the middle,
Talon
ComNet Overlord
 
Talon
 
[VE-ARMY] Surface Marshal
[VE-DJO] Dark Jeedai Master
[VE-VEHC] Surface Marshal
 
Post Number:  1954
Total Posts:  2417
Joined:  Feb 2000
Status:  Offline
  RE: Basic DHTML
July 18, 2005 2:24:57 AM    View the profile of Talon 
It's rather easy to break ComNet, it's just a pain in the ass trying to un-break it.
 
-----------------------
OO/SM Sierra "Talon" Taurus/HC-3/VEHC/VE[BC][IOC][LoC][SoS][BM][CDS][MSM][MoH]
GM-SL/DJM "Nightblades"/DC-1/Elite Griffen Sect/VSD-II Griffen/VEDJ/VE[IOC][OQD][WoS 2nd Class][EoP][SoY][SCx2]
-----------------------
SCAP/COM Vincent "Claw" Taurus/ISD Nemesis/Offensive Fleet/VEN/VE[=*A*=][=*SA*=][LoM][IOC][IC2]
CEO Vincent "Claw" Taurus/ECHC-1/Endoven/Dome 8473/VEEC/VE
-----------------------
Verastinian Republic - Minster of Antiquities (Fossil Technology)
vint
ComNet Member
 
vint
 
[VE-ARMY] Private First Class
 
Post Number:  532
Total Posts:  771
Joined:  May 2005
Status:  Offline
  RE: Basic DHTML
July 24, 2005 4:32:46 PM    View the profile of vint 
And if you want to learn some other HTML stuff hop over to This Good Site. And always remember that google is your friend.
 
-----------------------
Go here or die. It's updated every day.
Kiption
ComNet Novice
 
Kiption
 
[VE-ARMY] Gunnery Sergeant
[VE-VEEC] Executive Officer
 
Post Number:  88
Total Posts:  152
Joined:  Jan 2002
Status:  Offline
  RE: Basic DHTML
July 24, 2005 10:05:15 PM    View the profile of Kiption 
That looks to be a pretty good reference Vint.  The only thing i don't like about it is all the useless advertisments at the bottom of the pages.
 
-----------------------
Just another pretty face....
Verastinian Republic - Almighty Dictator

"If in physics there's something you don't understand, you can always hide behind the uncharted depths of nature. You can always blame God. You didn't make it so complex yourself. But if your program doesn't work, there is no one to hide behind. You cannot hide behind an obstinate nature. If it doesn't work, you've messed up." -- Dijkstra
KnightWind
ComNet Initiate
 
KnightWind
 
[VE-ARMY] Private First Class
 
Post Number:  193
Total Posts:  223
Joined:  May 2005
Status:  Offline
  RE: Basic DHTML
June 3, 2006 5:24:55 AM    View the profile of KnightWind 
How do you break someone elses html coding?
 
-----------------------
PFC KnightWind/2ndSqd/1StPlt/1stCom/1stBat/Antifarea/VEA [LoR]
DarkDragoons

I do not fear the future, I fear what I will turn it into.


Darr-Rann
ComNet Member
 
Darr-Rann
 
[VE-ARMY] Sergeant
[VE-VEEC] Reporter
 
Post Number:  684
Total Posts:  1587
Joined:  May 2005
Status:  Offline
  RE: Basic DHTML
June 3, 2006 9:08:32 AM    View the profile of Darr-Rann 
You dont really break their code for say. Its just, the input for comnet makes it a little easy to damage things (look at "Tying up Loose ends (Raiders)" in the army storyboard, page 2, for an example. at the beginning).
 
-----------------------
Raiders
SL/SGT_Darr-Rann/3SQD/1PLT/1COM/1RGT/1BAT/VEA/VE/Tadath [LoR][CoR]
|FL/PO1_Demonic/Kaph 5/PheonixWing/mSSD Atrus/DEF/VEN/VE| (=*A*=)
SERGEANT
PETTY OFFICER, 1ST CLASS
one of few - A vast Empire medic
Read Losses of Vandetta by me and Hellra
Flashmaker
ComNet > Engineering Corps > Archived Engineering Corps ComNet > Basic DHTML  |  New Posts    
 

All times are CST. The time now is 1:35:16 PM
Comnet Jump:

Current Online Members - 0  |  Guests - 62  |  Bots - 0
 
< Contact Us - The Vast Empire >
 
Powered by ComNet Version 7.2
Copyright © 1998-2024 The Imperial Network
 
This page was generated in 0.974 seconds.