|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
 |
|
|
|
09-04-2008, 02:57 AM
|
Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
Hi I have this www.pokerhungry.com website and on the left hand side. I have 11 links on the left hand side. I have a couple of questions.
I have 11 links all .html links. And 11 pages all .html
I notice that if I wanted to add one more link I have to change ALL pages
home.html, introduction.html, advice&mistakes.html, flop-play.html, etc., and put the new links there on EACH page as well. Is there another way to do this? Is there a more effective way to do this? I'm pretty sure there is.
Thanks to anyone who can help.
|
|
|
|
09-04-2008, 04:06 AM
|
Re: Hi about my poker site.
|
Posts: 554
Name: Danny Angelosanto
|
Not without doing some scripting which usually isn't worth the hassle. The easiest way to do it (best if you're working in dreamweaver) is to use find and replace
__________________
"Those who believe in telekinetics, raise my hand."
-Kurt Vonnegut
_____________________________________
|
|
|
|
09-04-2008, 09:56 AM
|
Re: Hi about my poker site.
|
Posts: 1,772
Name: Stephanie
Location: Oklahoma
|
The best and easiest way is to use server side includes. I don't think SSIs are too much hassle. They make your life a lot easier in the long run.
Here is a good intro on SSIs: http://www.htmlgoodies.com/beyond/we...le.php/3473341
SSIs won't work on .html pages without some tweaking. If you can, it would be good to change the extensions of your pages. You will need to know what kind of server side language your server supports (ie. PHP, ASP, etc.).
It really isn't as hard as it first sounds!
|
|
|
|
09-04-2008, 07:38 PM
|
Re: Hi about my poker site.
|
Posts: 118
Name: Alex
|
You do this using a frames or iframe. You can put an iframe into the cell of your table create and menu page with all your links and then just load the menu page into iframe. So when you add a link you will only will have to change the menu page see example below
<table style="width:750px; height:100%;">
<tr>
<td style="width:100%; height:100%;">
<iframe style="width: 750px; height:100%;" src="menu.html">
</iframe>
</td>
</tr>
</table>
|
|
|
|
09-04-2008, 07:46 PM
|
Re: Hi about my poker site.
|
Posts: 10,017
Location: Tennessee
|
Quote:
|
You do this using a frames or iframe.
|
Noooooooooooooooooo.... frames and iframes are both bad. They're ok if you're in a time warp stuck in 1997!
Tables for layout is pretty ugly too.... learn to use CSS for layouts.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|
|
|
|
09-05-2008, 08:29 AM
|
Re: Hi about my poker site.
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I guess y'all don't need to hear how WONDERFUL I think frames are!!! They are the best invention EVER! Think about it, you can show a whole OTHER website inside of your website! Server-side includes are so 2002!
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
09-05-2008, 03:19 PM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
hAHAHA WAYFARER IS SO FUNNY. So what is the standard now a days in web development? SSI or Frame?
|
|
|
|
09-05-2008, 03:37 PM
|
Re: Hi about my poker site.
|
Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
|
Server side code + javascript
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
09-05-2008, 03:47 PM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
Yeah thanks for your response, I was thinking about using javascript but the website viewers have to enable it on their browser don't they for it to work?
|
|
|
|
09-05-2008, 04:25 PM
|
Re: Hi about my poker site.
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
In almost every browser, JavaScript is enabled by default. In fact, it is very difficult to disable in IE, and only those who know what they are doing ever really do it. It is easier to do in Opera and Firefox, but it is still enabled by default, and those users tend to be more advanced anyway, and would probably know when to turn it back on in case they had it turned off.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
09-05-2008, 09:53 PM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
Hi I'm not sure if you guys are familiar with appservnetwork but it is a package that allows you do look at php, apache, and mysql on your local machine.
I added some ssi code into a notepad file and put it in the www root, and it doesn't show. I saved it as a .html, and a .shtml.
<HTML>
<TITLE>Test File</TITLE>
<!--#config timefmt="%A" --> <!--#echo var="DATE_LOCAL" -->
</HTML>
|
|
|
|
09-06-2008, 10:13 PM
|
Re: Hi about my poker site.
|
Posts: 14
Name: Peter
|
It is a pain. I have had that problem many times with some of my sites.
My advice, wait till you have some free time and just do it manually.
|
|
|
|
09-06-2008, 10:26 PM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
What is the standard now-a-days though?
|
|
|
|
09-06-2008, 10:34 PM
|
Re: Hi about my poker site.
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Definately SSI.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
09-08-2008, 01:38 AM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
Ok one of the guys posted that I should use CSS and JavaScript. I went through all the tutorials on the w3school website, and it did not teach me anything about making links dynamic.
I also am half way through JavaScript on the w3school website and it isn't teaching me anything but basic concepts like when I studied C++. It's just teaching me about the language. Operators assigning values to variables like textd="dumb" stuff like that. Any other suggestions?
Also I tried doing SSI but I installed APPServ on my computer and basically apache is on and everything, saved the SSI file to my www folder on my machine and the SSI codes don't work so I think SSI is garbage, it's too hard to even set up I think.
Any other suggestions please?
|
|
|
|
09-08-2008, 03:45 AM
|
Re: Hi about my poker site.
|
Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
|
Quote:
|
Also I tried doing SSI but I installed APPServ on my computer and basically apache is on and everything, saved the SSI file to my www folder on my machine and the SSI codes don't work so I think SSI is garbage, it's too hard to even set up I think.
|
Ok then you're right, hundreds of thousands are wrong, lets all stop using SSI!
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
09-08-2008, 03:59 AM
|
Re: Hi about my poker site.
|
Posts: 2,071
Name: carl
Location: UK
|
I'm still learning all this stuff and it can seem a little confusing but it isn't that difficult.
A a server side include (SSI) is effectively a link to a file that contains the code.
For you it could look something like
Code:
<? include($_SERVER['DOCUMENT_ROOT'].'/assets/links.js); ?>
Rather than having the code on each page (which would mean updating each page manualy) you only update the file the SSI links to, one file instead of 11 or 12.
You dont have to change all your file extensions from .html to .php if you dont want (as this would probably impact on your SE results) - ask your host to set up your hosting to parse .html as php
this is probably a better example for you
Code:
<!--#include virtual="/links.html"-->
Hope this helps a little
Last edited by bakerc; 09-08-2008 at 04:25 AM..
Reason: added simpler example
|
|
|
|
09-08-2008, 06:01 AM
|
Re: Hi about my poker site.
|
Posts: 47
Name: Katie
|
Server side includes is the way to go, easier to up date and maintain and also you don't have to change each page each time you make a change.
|
|
|
|
09-09-2008, 12:00 PM
|
Re: Hi about my poker site.
|
Posts: 40
Location: i live with your mom
|
Can someone help me break down the SSI code I am having difficulty understanding. Baker C your code looks like half javascript and half php, is this true?
|
|
|
|
09-09-2008, 02:17 PM
|
Re: Hi about my poker site.
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
There is nothing to it, really. Say you are using PHP (this is on most web-servers these days, so it's an easy example). Now, lets make a super-simple HTML page with a server-side include in it:
PHP Code:
<html> <head> <title>SSI</title> </head> <body> <p>Hello World</p> <?php include "includes/goodbye.html";?> </body> </html>
Now, lets say the file at includes/goodbye.html is this:
HTML Code:
<p>Goodbye World!</p>
Now, the HTML that is outputted to the browser from your original file would be this:
HTML Code:
<html>
<head>
<title>SSI</title>
</head>
<body>
<p>Hello World</p>
<p>Goodbye World!</p>
</body>
</html>
Of course, you could put as much stuff inside of includes/goodbye.html as you like, and it would all take the place of <p>Goodbye World!</p> in the example above.
Hope this helps.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 09-09-2008 at 05:40 PM..
|
|
|
|
|
« Reply to Hi about my poker site.
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|