Web Design Lessons and Ideas - Post...

User 6573 Photo


Ambassador
2,649 posts

Post short articles on web design ideas or lessons that you can do using Coffee Cup software. Please title your posting and mention what cc program you used.

This thread is ideas / Lessons ONLY!


Software tip or trick need to be posted in the software tip thread for that program - not here - this is for Ideas and Lessons using CC software


Have a problem or question then post in the Website Design and Development thread, not here, so your question does not get overlooked.

Subscribe to this thread if you like to get emails on tips and Tricks people post

User 117361 Photo


Ambassador
6,076 posts

How to prepare images for my web site

A couple of things always to bear in mind:

1.There are still a lot of people (as at July 2006) around the world with slow connections.
2.Big is slow download
3.Small is fast download

So what makes an image big or small?
What looks like a small image to you, might actually be big in digital "weight".
This means that an image has not been optimized for internet.
Taking slower connections into consideration, and giving those web surfers a pleasant viewing experience, your pages should not "weigh" any more than about 50kb to 70kb in total and no individual image more than about 15Kb to 20Kb . There is an exception to this rule, and this limit can be overstepped if you have lots of small images which will load quickly. When designing your front page, that "weight" should be even less, because that is the crucial moment when your potential visitor is going to decide whether to hang around and wait for your page to load, or to move onto something else

So what about the quality of our images.
Generally speaking, you should not expect a high quality for your images on internet. This is what optimization is all about.
You try to compromise between quality and "pixel weight"
So before you save your image for uploading, try out several optimization levels and decide which is the lowest acceptable pixel weight.
This is also why thumbnail images (very small versions of the original) are used. The user will then click on the thumbnail and be linked into a large version of the original image. If you just link directly to the original image, you can retain a much larger size, providing there is nothing else appearing on the page with the enlarged image.
ALWAYS retain a copy of your original image to have for eventual mistakes or over-optimization.
Create a folder with a meaningful name to hold all your web page content, and inside that folder, create an images folder where you will save all your optimized images. In the same web folder you could create a separate folder for the original images so that you know exactly where to browse to if it proves necessary to make some changes.
In my opinion, it is always a good idea to prepare all your images first, or certainly as far as is reasonably possible. It is much easier to decide on the layout for your pages when you already have some idea of the content.

Take a look at the CoffeeCup Pix Converter for batch optimization
User 117361 Photo


Ambassador
6,076 posts

Mapped or Sliced Image?

These are 2 different methods for adding links to areas of an image.

Mapped image
An image, either large or small, can have certain areas selected using a tool which creates shapes. The area within the shape can then be linked to a page, document etc.
This is useful for adding hyperlinked information referring to an object or hot spot area of your original image.

Most programs will also optimize the original image for uploading.
The physical size of the image will not normally be changed, even though the digital "weight" (number of pixels) might be.
Experiment with the CoffeeCup Image Mapper for mapped images.

W3C on image maps
http://www.w3.org/TR/html4/struct/objects.html#h-13.6

Sliced images
As I mentioned before, slicing images is another way to use areas of an image as links to other documents, pages or images.
To slice up an image you will need a program to elaborate images. Most programs will have some tool or another to slice up your image, so quite probably whatever you use normally will be more than adequate.
Look at this image to see more or less what needs to be done:

http://www.venicedigital.com/coffeecup/forum/image-map.jpg

The original image has been sliced up into lots of smaller sections. Here they have been shown separately, but when you save the sliced image, the program will automatically create a table to contain all the sections rather like a jigsaw puzzle. No breaks will be visible between one piece and another.
During the creation phase of the sliced image, you will probably be given the option to add links into each individual section. If that is NOT the case, with some knowledge of HTML you will be able to go into the table containing all the image sections, and create a link from any of the sections yourself.
The sliced image will be contained in a <TABLE></TABLE> and each row of pieces in your image will be contained in a row<TR></TR> and every single piece of the "image puzzle" will be contained inside a single cell <TD></TD>.

Advantages of sliced images
I personally consider that there are some interesting advantages
1.If you have some knowledge of HTML you can open up the web page containing the sliced image table in your *HTML Editor and actually remove a piece of the jigsaw and replace it with another image of your choice, or an area of text. Be very careful to make the new image you insert exactly the same size as the piece of the "puzzle" you are removing. Right click on the area of the image you wish to substitute in order to see the properties of that section (size, name etc.) and then be able to find it more easily inside the table.
2.When you slice your original image you will often find that the image program allows you to create mouseover or rollover effects during the creative process.
3.You can retain the quality of your original image because by slicing it up into lots of small pieces, you are actually preparing a higher quality image for a faster download


*Check out the CoffeeCup HTML Editor for your tables. You will also be able to access the CoffeeCup Image Mapper from the Editor
User 11165 Photo


Registered User
4,316 posts

Have Pages go the server rather than using your cache

Place this in the heading with your Meta Tags:

Meta Tag:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

This forces the page to go to the server rather than using the cached page on people's computers. I suppose you could also use:

<meta http-equiv="refresh" content="2">

10 being the amount of seconds before the page automatically refreshes.
Darce Jean
User 11165 Photo


Registered User
4,316 posts

Reason for Images looking 'fuzzy' or out of focus after Uploding to the Web Site

If your images are saved correctly with correct DPI , Optimaztion, and correct and they look correct on your hard drive then they should be ready for uploading and look correct on your web site.
If the images are fuzzy with blurred edges and loss of color after uploading, it may be your FTP upload provider or software.

First check that your images have been correctly saved for web veiwing (refer to the topic - "How to prepare images for my web site" by Janwyse in this thread)

If the image is prepared and looks correct before uploading, try a different FTP Software or FTP Server.
Darce Jean
User 117361 Photo


Ambassador
6,076 posts

Workaround for .swf objects in Internet Explorer as of summer 2006
(until permanent solution is included in Internet Explorer)


This is NOT a software issue.

Original post that follows by Cliff Main. Post has been edited slightly.

<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- Please make sure to place this script /script that follows in the head of your page. -->
<script type="text/javascript" src="swfobject.js"></script>
</head>

<body bgcolor="#FFFFFF">

<!-- Here is an example of the HTML that you would normally need to copy and paste into the body of your page -->

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="500" height="462" id="CoffeeCup" align="middle">
<param name="movie" value="learning.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<embed src="learning.swf" quality="high" bgcolor="#ffffff" width="500" height="462"
name="CoffeeCup" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

<!-- Here is the new code. Please make sure you have the *swfobject.js file in the same directory as your .swf flash file. You also need the code from the head of this page that says "script type=text/java....../script. Make sure to place that code in the head of your page, just copy and paste it in, it never changes. -->

This second flash code is done using the javascript method. It does not require a "click to activate". It will work in IE on the first click, just like it should.

<div id="flashcontent" align="center">
This text is replaced by the Flash movie name eg.Flash Menu or any other name you wish to give to the movie.
</div>

<script type="text/javascript">
// <![CDATA[

var fo = new FlashObject("learning.swf", "learning", "500", "462", "4");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("salign", "lt");
fo.addParam("id", "CoffeeCup");
fo.write("flashcontent");

// ]]>
</script>

<!-- the part after FlashObject is the name of your flash movie "learning.swf" in this case. change that to your new movie file name, then name it again without the .swf extention, then the width, height and the "4" is the version of flash player you are creating for. I use "4", but you could use as high as "8" which would make the user need to upgrade to flash player 8 in order to see the file. After the "4" is where you would place the background colour, like this "4", "#FFFFFF"); or whatever colour your flash code says.
After that, you just create fo.Param("", ""); to replace all the param name parts of your flash code. In this case, I replaced "quality", "scale", "salign" and "id"


*You can get the swfobject.js file from:
http://blog.deconcept.com/swfobject

This page has instructions and some options not mentioned above.


Jeremy Roberts wrote:
http://www.roberts124.com/test/
Ok the workaround worked as advertised with one small side-effect. My flash menu now loops continuously. When using the EMBED tags there was a Parameter setting loop to false. Is there anything simple I can add to the new script to stop the loop or do I need to create an If-Then statement?

By the way, thanks for the workaround. I was starting to pull my hair out!

Jeremy
User 117361 Photo


Ambassador
6,076 posts

Creating Rollovers

Here I am going to explain how to create a simple image rollover using the HTML Editor.

1. Create 2 images of identical size
These can be for your navigation buttons, or just purely to create effect as a design detail.
2. Remember that one will replace the other when the cursor passes over them.
3. Save them to the same folder in which you will be saving the web page with the rollover effect.
4. Look carefully at the source code in the following page where I have prepared an example rollover. Do feel free to copy the code and adapt it to your own image names and/or linked pages. This image button also has a link to a second page to demonstrate how you could use these rollovers for navigation buttons on your web site.
5. It is very important to remember that if you want several rollover images on one page every one of them must have a unique name otherwise the rollover script will be confused!!
6. For more than one image, you would be wise to use consecutive numbers for the buttons in the code - so this one example of a navigation button has been called button1 either blue or red (any name will do), but for extra images I would have had to call them button2 or button3 etc.
Even if you have several rollovers on one page, the consecutive numbering in no way affects the actual positioning on your page of the rollovers.
Have a go.

Script as follows:

Put this script immediately before the </head> (or <head/>) tag

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

<!-- Hide script from old browsers

if (document.images) {
button1Red = new Image
button1Blue = new Image


button1Red.src = "that.jpg"
button1Blue.src = "this.jpg"


}
else {
button1Red = ""
button1Blue = ""


document.button1 = ""
}
// End hiding script from old browsers -->

</script>

For extra buttons or images, you will have to multiply the 4 different sections of the script by the number of buttons or images you are using.
eg.
button1Red = new Image
button1Blue = new Image


would become:

button1Red = new Image
button1Blue = new Image
button2Red = new Image
button2Blue = new Image


and so on.

Where you position your button/image somewhere between the <body></body> tags you would see:
<A HREF="return.html" onMouseover="document.button1.src=button1Red.src" onMouseout="document.button1.src=button1Blue.src"><IMG SRC="this.jpg" WIDTH="300" HEIGHT="100" BORDER="0" NAME="button1" ALT=""></A>



Where:

IMG SRC="this.jpg" WIDTH="300" HEIGHT="100" BORDER="0" NAME="button1" ALT="">


refers to your image name and size
And:

A HREF="return.html"

refers to the linked document your user will navigate to if he clicks on the linked rollover images.
User 117361 Photo


Ambassador
6,076 posts

How wide should I make my page?

This has presented itself as a common dilemma on many occasions. It seems to be the general opinion (as of July 2006) that you can now calculate for 800 x 600 as being the lowest screen resolution around these days, and a 1024 x 768 resolution as having the lion's share percentage wise. There is still quite a limited number of users of bigger screens/resolutions, though these are certainly becoming more popular.
To be user-friendly at both those sizes, a page of a maximum 780 width (height is not that important and should stretch according to your content) seems to be acceptable. This width allows for the space taken up by the scroll bar, and for the default left-hand margin created by many of the browsers.
Making your page this width means that you are trying to create a pleasant surfing interface for those who use either of these most popular screen resolutions.
Look at this web site for further help:
http://www.unk.edu/website/index.php?id=2184#
You can also check out the effect by right-clicking on your desktop and changing the settings of your own screen in your control panel. That way you can see how your pages look in both those resolutions.
You would also be wise to check out your pages on several browsers. Yet again, Internet Explorer 6.00 is the most frequently used browser, followed by Firefox, and then dwindling down between the others such as Opera, Netscape, IE 7 etc.etc.
Download a couple of others and keep them on your pc for the occasional check.
Be ready to make a few changes to the site pages which were looking perfect on one browser - and appear totally different on another!

Some browser, OS and screen resolution stats from the W3C.
http://www.w3schools.com/browsers/browsers_stats.asp
User 11165 Photo


Registered User
4,316 posts

Flash Animations and Drop Down Sub Menus
by member Jon


If you have a problem with your Drop Down Sub Menus falling behind your Flash Animations,

The posted solution was as follows

Quote----------
You will have to add the wmode parameter to the flash object and embed tags as well. Should look something like this:

HTML Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200"> <param name="allowScriptAccess" value="sameDomain" /> <param name=movie value="mymovie.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <embed src="mymovie.swf" type="application/x-shockwave-flash" quality="high" width="300" height="200" wmode="opaque" allowScriptAccess="sameDomain"></embed> </object>

If you don't do that, your menu will fall behind any Flash anims.

End Quote
Darce Jean
User 117361 Photo


Ambassador
6,076 posts

Can I make my site any way that pleases me?

There are a number of issues to consider when building a web site, which go beyond the page size, colour themes, types of images or other choices such as the colour and size of your fonts.

Over recent years much more consideration has been given to disadvantaged users of internet and their right to have access to web content in just the same way as their fully abled counterparts.

For many years the W3C organization has been giving its attention to all the various issues revolving around usability and accessibility, bearing in mind all manner of difficulties that range from slow internet connections, to those who are visually or physically disabled in some way and in need of special apparatus to view a site.

Certain countries in the world are already considering the application of Discrimination Laws with all the legal implications to those who knowingly ignore or fail to comply with certain "good" practices in web design and the allied industries. Initially they are concentrating their attention on Public Institutions, but there is the possibility that this area of interest will expand if the interested parties begin to demand their rights through legal institutions.

I hardly wish to begin to tell you all to start to set aside your creativity in order to comply with all the recommended measures, but perhaps to give a little attention to what is entailed and inferred by usability and accessability.

Here is an interesting article written by one of the well-established gurus on the subject, Jakob Nielsen. I will add more addresses as and when I find them, and would invite you to let me know any of your own which deal with these issues. Don't be put off by what may seem to be outdated information as much of it still holds true but just needs to have a few numbers changed slightly

Let's all do our best to make internet a better place for everybody!!
useit.com/alertbox/991003.html
useit.com/alertbox/9703a.html
http://www.computerweekly.com/Articles/2006/10/24/219269/How+to+make+your+website+fit+for+all.htm
http://www.usableweb.com/

W3C Web tutorials
http://www.w3schools.com/
http://www.w3.org/MarkUp/Guide/

Check out your pages for accessibility....
https://addons.mozilla.org/firefox/402/

Some bad habits to avoid!
http://technology.guardian.co.uk/online/story/0,3605,1511967,00.html
http://www.angelfire.com/super/badwebs/main.htm

What others think about your site.....
http://news.bbc.co.uk/1/hi/technology/4616700.stm

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.