HTML Help

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
User avatar
Aiken
Regular Poster
Posts: 210
Joined: Wed Jul 26, 2006 6:30 am
Location: Lincoln, England
Contact:

HTML Help

Post by Aiken »

Id like to redesign my webiste, and as part of the design id like to incoporate a seamless banner/navigation bar in the top left corner.

For example, what they're sporting over at Ctrl Alt Del

Can anybody tell me how i would go about doing this, or failing that point me in the direction of a good tutorial.

Thanks in advance.
<a href="http://sci.comicgenesis.com"><img border="0" src="http://sci.comicgenesis.com/images/sigbanner.jpg" width="282" height="70">

User avatar
Black Sparrow
Cartoon Anti-Hero
Posts: 6973
Joined: Fri Jul 22, 2005 9:04 am
Location: Violating your restraining order
Contact:

Post by Black Sparrow »

As far as I can tell, from looking at the page source of CAD... it's just a bunch of sleekly used tables and images.

I googled these up; maybe they can help:

http://www.webdevelopersnotes.com/
http://www.2createawebsite.com/newsletters/issue13.html
http://www.hypergurl.com/sidenav.html
This is going in my notebook titled "Things I Didn't Know about Surface Dwellers."
ImageImageImageImageImage
ImageImage

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

You can also "cheat" and use an imagemap. There's a nice tutorial for imagemaps here.

Basically, you make an image for the bit that you want (banner and nav buttons) and the image map makes specific areas of the image (ie: the nav buttons) into a hyperlink.

They're fairly easy to use, but some people get confused with them. Have a go and see if you like it.

User avatar
Aiken
Regular Poster
Posts: 210
Joined: Wed Jul 26, 2006 6:30 am
Location: Lincoln, England
Contact:

Post by Aiken »

thanks guys, looks like there's some pretty helpful stuff here.
<a href="http://sci.comicgenesis.com"><img border="0" src="http://sci.comicgenesis.com/images/sigbanner.jpg" width="282" height="70">

House
Newbie
Posts: 3
Joined: Wed Dec 20, 2006 6:47 pm

Post by House »

Okay.. I kinda need your help, folks! We have our website done and all.. but the **todays_comic** Tag.. doesn't seem to be working right.. when I upload the website.. it just shows the tag. What's up with that? Sorry if this is a repeted question, I don't mean to look like an idiot.

Thanks

User avatar
Black Sparrow
Cartoon Anti-Hero
Posts: 6973
Joined: Fri Jul 22, 2005 9:04 am
Location: Violating your restraining order
Contact:

Post by Black Sparrow »

You made one of the most common mistakes in the book. The tag's actually ***todays_comics*** with two "s"s. Image
This is going in my notebook titled "Things I Didn't Know about Surface Dwellers."
ImageImageImageImageImage
ImageImage

User avatar
Gubbin
Newbie
Posts: 17
Joined: Mon Jan 15, 2007 8:43 pm
Location: here

Post by Gubbin »

This is sort of a related question, how do I edit the index template?

i want to add some tags and make my site look pretty, but i cant even figure out how to edit it.

If i open it in word or something, can i edit it and then save it as .html again?
c'mon. help a guy out.
boycotting capitalization

User avatar
Black Sparrow
Cartoon Anti-Hero
Posts: 6973
Joined: Fri Jul 22, 2005 9:04 am
Location: Violating your restraining order
Contact:

Post by Black Sparrow »

First things first. Do not edit in Microsoft Word. Word adds all this extra stuff to your coding and messes it up. Edit in notepad instead.

Standard procedure for editing your indextemplate is like this:

1. Download your indextemplate.html in your FTP to your computer.
2. Save an extra copy of the original, as backup in case you mess up.
3. Open the html file you just downloaded. View the page source. This is under View/Source in IE and View/Page Source in Mozilla.
4. Edit the source to your heart's content. You can save it as an html file and refresh the browser window showing the file to view your progress.
5. When you're done, save your final result (again as html) and close it up.
6. Go back into your FTP and delete the indextemplate in the workspace folder.
7. Upload spankified version.
8. Rinse and repeat with your dailytemplate.html.

Also, to upload additional pages (cast and info pages), just open a new notepad file and follow steps 4-7, uploading the workspace/webpages folder.

When you're done with everything, run a manual update. Regular should do it, although full would be appropriate if you had any "extras" pages.
This is going in my notebook titled "Things I Didn't Know about Surface Dwellers."
ImageImageImageImageImage
ImageImage

Halcogeth
Newbie
Posts: 2
Joined: Thu Feb 01, 2007 4:36 am

image maps with tags

Post by Halcogeth »

Is there any way to get the tags for previous day and next day navigation buttons to work with an image map? Or maybe another automatic way to get the links to point to the right comics?

User avatar
Moonshadow
Regular Poster
Posts: 158
Joined: Sat Nov 15, 2003 9:38 pm
Location: Somewhere north

Post by Moonshadow »

I suppose you could do it as a "fake" image map, where you create your main graphic, and slice it into four pieces (for first, previous, next, last); when it loads up, I think they should align against each other and create one full image again. Though I haven't tried it so I can't say for sure...

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

Yeah, you can "fake it", but then it's not an imagemap, it's just a regular table with links.

An imagemap works great for 'static' links for navigating around your site (links to things like the archive, cast pages, about info etc) but not for dynamic links (meaning: that change each update). If you want your comic navigation buttons (back / forward) then the best way would be with a table.

Note that with a table you will have to do a lot of messing around to get a seamless look. It's not really hard, you just need to spend time "tweaking it" to get it to look right.

The easiest way would be to use a program (such as Adobe Image Ready) that will let you cut up an image into a webpage, then pull out the relevant bits of code and discard the rest.

If you can't work it out, make the complete image, pm it to me and I'll cut it up for you and send you the pieces and the code to make it work.

Halcogeth
Newbie
Posts: 2
Joined: Thu Feb 01, 2007 4:36 am

Post by Halcogeth »

Yeah. I gave up on the image map in the end and used a table. However, something weird happens on the index page. The ghosted next button image doesn't show up and i don't know why. I suppose i'll have to take out the dynamic link and insert the image in the main page.
...
Which template's for the main page and which one's for the individual comics? I forget.

User avatar
Black Sparrow
Cartoon Anti-Hero
Posts: 6973
Joined: Fri Jul 22, 2005 9:04 am
Location: Violating your restraining order
Contact:

Post by Black Sparrow »

You may have the ghosted image labelled wrong (such as a capitalized extension. It's finicky that way)

Your indextemplate is for your indax/main page. The dailytemplate is for your archived (non-current) pages.
This is going in my notebook titled "Things I Didn't Know about Surface Dwellers."
ImageImageImageImageImage
ImageImage

User avatar
Oualawouzou
Cartoon Cop (Moderator)
Cartoon Cop (Moderator)
Posts: 1548
Joined: Fri Jan 10, 2003 7:47 am
Contact:

Post by Oualawouzou »

It is a known bug, ghost images for "next day" and "today" do not appear on the index. Simply replace the two ***tags*** with the appropriate HTML code to show the images on the indextemplate.html only (leave the ***tags*** on the dailytemplate.html). After all, you shouldn't have to have the non-ghosted buttons on your index, provided you do things the classic way (i.e. with the homepage showing the latest comic).

Post Reply