|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
Making a 'template' based website? Confusion
Well I just recently got the urge to look into making websites, yet again, and am looking for an answer to a question I have always wondered.
On many sites(such as the PCMech main page) they have the nifty bars(side and top-See attachment for a better idea if you don't know what I am talking about) and I am just wondering how they are made. Is it all made in a program like PhotoShop and then spliced into separate images for each heading(BIOS, Operatigng Systems, etc[from attached example of PCMech main site]) or is it just a site width image that has text displayed over each corresponding image. If it is the latter, how is the text centered so well over the image? The links only work when clicking on the text, so I assume it isn't just an image with "BIOS" written on it, as then the whole image would act as the link, right? I just viewed the source for the site, and it mentions Java being used; is javascript taken as any part of the process or is that unrelated to the organization of the site? I have minor experience in HTML, and just yesterday read about CSS(as I was completely clueless as to how you used it), but have not once read about Java/Javascript(is there a difference between the two?). Thanks for any and all help. If I need to elaborate on any point, then feel free to ask. I am told how I think a little awkwardly, or at least I often place my points burried within thoughts and other thoughts, so it can occasionally be a little tedious and tiresome to get through my jabberings and find my questions. EDIT: Wow, the picture is really pixelated. Sorry bout that. You get the idea though, right? Last edited by ZeratulsAvenger; 05-29-2005 at 09:43 PM. |
|
|
|
|
|
#2 |
|
Member (11 bit)
Join Date: Aug 2003
Location: NJ
Posts: 1,099
|
I'm not sure about PCMech's site. But, I've worked with osCommerce. It's basically a PHP based online shopping cart with templates.
Most template websites that I've seen are built by having an index page call on different modules. The actual codes are not written on the index page. The coding on the index page are basically a call function to other modules, which is where the actual codes are written. If you want hands-on experience, you can download osCommerce and play around with it. It is open source code and fairly easy to mod, assuming that you have some programming background. They have a support forum and software documentation to guide you through. All you need is a PHP enabled server with MySQL support.
__________________
P4 2.6C @ 3.12 || ASUS P4C800-E Dlx || Antec SOHO File Server w/ 5 case fans || Antec TruePower 430w PSU || 2 x 512MB Crucial PC3200 DDR || 280GB of total storage 7200rpm ATA100 8mb cache || LiteOn CDRW 52x32x52 || LiteOn DVD+/-RW SOHW-812S || WinXP Pro || Solarism 15" TFT LCD || 500VA TrippLite UPS || Logitech MX-700 Duo || ATI 9800 AIW || Sennheiser HD-555 |
|
|
|
|
|
#3 | |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
It depends from website to website - the website template on the left side of the PC Mech homepage is basically a table, with greyish background and text over it, hyperlinked. The top navigation is entirely an image linked to other places - Photoshoped probably. With the top navigation bar, I believe an imagemap is used - in other words, only a certain portion of the image will link to a location. You'd probably be best off having a program doing that since doing it in a scripting language (ie. JavaScript) is a pain to do by hand, IMHO.
Quote:
CSS is like a key - it's like with defining variables in simple algebra. If "A" corresponds to a certain code, then whenever "A" is called in the actual website, the text or image or whatever will follow parameteres defined in "A". So if you define H1 in CSS (for example, Times New Roman, font size 4), everytime you surround a text using H1, it will look like this. Let me know if this sounds unclear to you. kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman |
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
Thanks for the reply's. I'll be back later with more probably
|
|
|
|
|
|
#5 | |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
Quote:
kram |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|