way to lesson work?

windows

Guest
hello,<br />
<br />
<br />
I am currently making a jokes section for my website.<br />
<br />
How I want to do it, is to have 12 sections of jokes<br />
such as, Osama jokes, Blond Jokes, etc.<br />
<br />
and then I want around 4 or 5 pages with 15 jokes per page for each section.<br />
<br />
I was recently just puting the first pages for each section togeather and it took me forever becouse I hade to make everyother joke to have black and then everyother to be blue<br />
<br />
ex.<br />
1 = red<br />
2 = blue<br />
3 = red<br />
like that. So you can tell when another joke is starting.<br />
<br />
I also have to put <hr > tags in there to help seperate and a number bullet list also. It took me a while to make one page for one joke catagorie. there is no way ill get this done. Any Ideas of a joke diplaying method that I could use that would be faster and easyer.<br />
<br />
Ill attatch a page of what pages currently look like.<!--content-->Hi GREGO,<br />
<br />
I discovered this editor:<br />
<!-- m --><a class="postlink" href="http://www.maxworld.co.yu/htmlbeauty/">http://www.maxworld.co.yu/htmlbeauty/</a><!-- m --> 1.86 MB freeware<br />
I used it to do your file.<br />
I use a "class" for blue and one for black.<br />
Now take the jokes -the part in the div tags- out of it, and you have a template.<br />
Save as template_joke.html<br />
Now open it and put the new jokes between the div tags and save as joke_a.html and so on. ;)<!--content-->thanks!<br />
<br />
<br />
it looks really cool and easy but I have only 1 question, I saw some scc in there and im afriad netscape users wont be able to see it<!--content-->Grego, don't be fooled. Netscape does recognise a lot of css. tha tpage looks fine and it colored like IE. the only difference is that the borders are thicker in IE, that is all.<!--content-->ok cool, thanks scout<br />
and thank you Petervazed<!--content-->one question, do i have to have that thing at the bottom telling about the editor, if i use that editor?<!--content-->This?br />
Originally posted by GREGO <br />
one question, do i have to have that thing at the bottom telling about the editor, if i use that editor? <br />
<br />
Ofcourse not...... i just put it there for you to get it... ;)<!--content-->I would actually just make a template that's set up using tables. That way you can set it up to only display using say 70% of the screen. As it is I have to read all the way from the left to the right on a 1280x1024 screen. Normally, people prefer to read shorter sentences. Therefore, it would be wise to decrease the width of the jokes.<!--content-->Originally posted by GREGO <br />
Any Ideas of a joke diplaying method that I could use that would be faster and easyer.<br />
<br />
<br />
<br />
i would use php and mysql, but that's just me :)<br />
<br />
that way you could add jokes to any portion of the database, and on the submit form have some options like this:<br />
<br />
joke color, category, etc...<br />
<br />
that way when it is entered into the database it is already the specified color, and also, when you pull the jokes from the database you would have one line of code that defines the way the jokes are printed, like so:<br />
<br />
<br />
printf("<tr><td><font color=\"%s\">%s</font><br><hr width=\"70%\" align=\"center\"></td></tr>", $row["color"], $row["joke"]);<br />
<br />
<br />
or something to that effect.<!--content-->Originally posted by Will <br />
<br />
i would use php and mysql, but that's just me :) that way you could add jokes <br />
to any portion of the database, and on the submit form have some options like this:<br />
<br />
joke color, category, etc...<br />
<br />
<br />
I'm with Will on this one. It looks as though your site could benefit from the integration of a database (MySQL, postgresql, mssql) and server side scripting (php, asp). You may want to consider this as an enhancement at some stage.<!--content-->guess i better go bye a book on php and all of that programming stuff and learn it.<br />
<br />
is it hard to learn, I knew I would have to learn it sometime but i think i should learn the rest of javascript right now and the jokes can wait.<br />
<br />
<br />
and if i use php does that mean i have to end the page with .php?<br />
<br />
ex <!-- w --><a class="postlink" href="http://www.blah-blah.com/pages/thispage.php">www.blah-blah.com/pages/thispage.php</a><!-- w --><br />
<br />
I hope not<!--content-->yes you would. either name it .php or .phtml or .php3 which ever one your server will allow.<!--content-->Originally posted by GREGO <br />
...is it hard to learn,...<br />
<br />
Believe me, if I can get it working then anyone in here can. I am just a lowly Project Manager and can't program for toffee. I found php really easy to pick up and learn, also there are some great resources and help on the Net, Usenet and forums (like this one).<br />
<br />
<br />
I knew I would have to learn it sometime but i think i should learn the rest of javascript <br />
<br />
<br />
What do you mean by learn the rest? I think if you waited until you had learnt everything there is to know on javascript then you will never move on to other stuff. <br />
<br />
I learn stuff as and when I need it. If I need some client side scripting, instead of installing someone else's script I will read up and ask questions on how to achieve what it is I am after. Then I try it....doesn't work....ask more questions...and eventually get it to work (insert more "doesn't work"s in there) :)<br />
<br />
<br />
right now and the jokes can wait.<br />
<br />
<br />
Why? You have the perfect excuse for learning PHP. Learning something is so much easier and quicker if you can apply what you read and learn to things you want to achieve yourself. I learnt php & MySQL purely and simply because I wanted a Ski Resort database....no other reason..now I use it for all sorts of stuff.<br />
<br />
<br />
...and if i use php does that mean i have to end the page with .php?...<br />
I hope not<br />
<br />
<br />
Like Scoutt says, yes you would. Why do you feel this would cause you a problem?<br />
<br />
At the end of the day you have nothing to lose in learning PHP and everything to gain. If it all goes horribly wrong then you are only back to where you are now, no worse off. All you need to get it working is Apache, PHP and perhaps MySQL. All are free. If you want more specific PHP help on installation, configs, etc then post in the Server Side forum where you will receive good help from the more experienced people, like Scoutt. (I might answer some of the easy ones ;) )<br />
<br />
Good Luck whatever you decide.<!--content-->Hi There-<br />
<br />
I just took at look at your page, and checked the source. I re-iterate what the other folks have been saying regarding Cascading Stylesheets. Webmonkey has some pretty decent tutorials in the basics. Also, check out the O'Reilly book "Cascading Stylesheets"<br />
<br />
Homesite, by Alliare is a great tool (and free to preview for 30 days on their website) that allows you to stay close to your code and avoid a lot of the code bloat that gets put in by WYSIWYG editors (like Frontpage ACK!) it also comes with a version of Top Style -- this is a handy little interface that helps with the building of style elements.<br />
<br />
Another suggestion for your page. . . .<br />
<br />
While I agree that adding some programming to your page might be fun -- it is also time consuming if you don't know it. You could probably create the effect you want by doing the following.<br />
<br />
Create your list of jokes at the top of the page thus:<br />
<ul><br />
<li><br />
<a href=http://www.htmlforums.com/archive/index.php/"#dead"><br />
1. How many dead people does it take to screw in a lightbulb?</a><br />
</li><br />
<br />
<li><br />
<a href=http://www.htmlforums.com/archive/index.php/"#flies"><br />
2. How many flies does it take to screw in a light bulb?</a><br />
</li><br />
<br />
make each of them an anchor link (also called a bookmark) <br />
to text in the bottom of the page<br />
<br />
<br />
<p><br />
<a name="dead"></a><br />
None they're dead.</p><br />
<br />
<p><br />
<a name="flies"></a><br />
Only two . . . but it's difficult to get them in there.</p><br />
<br />
Good luck.<br />
<br />
-beth<!--content-->
 
Back
Top