Showing posts with label Dreamweaver. Show all posts
Showing posts with label Dreamweaver. Show all posts

Wednesday, 2 May 2012

Dreamweaver Induction

Making the buttons change when you hover over.
open Photoshop, and make sure its set to web and make the document size the same size as your buttons (considering the padding around it as well).



 Save for web as PNG 24 and save in root folder, images, home1.



Add a line or whatever adjustment to your button and save as home2. Do the same for the rest of the buttons.


You cannot create a rollover button in html or the style sheet, because it uses java script.

In the html (source code) click just after your first button and select insert, rollover image.



Call it home and add the two files, home1 and home2.

Make sure 'preload rollover image' is selected.

If the images cant load for whatever reason then, the alternate text section will show instead. So just type home button.

The javascript is then automatically added for us. Repeat for the rest of the buttons.


The hover doesn't show up on the split screen, but if you save and then preview the page then it will show the control. Get rid of the background colours on the style sheet.


We need to make a template of our existing code. This means that if we want to edit the website in the future, it will automatically change every page rather than having to waste time doing it individually.

we want the logo and navigation to stay the same, but we want the middle to be an editable region. On the design view, click on the area and the click insert, template objects, editable region. Call it content.



We now want to save as template. Call it template.
Click file new, page from template, then click create.


Save as index, and click ok to replace. Repeat for, home about etc.


Change the type in the content section for each template and save.

In the template section, click on each of the buttons, and on the toolbar at the button click on the folder next to the link option and select the templates for each button. Save all.










Wednesday, 25 April 2012

Dreamweaver induction

For next week: Sketches of final website design.

What needs to be determined before we start designing our website...
Target audience
What the audience needs to see (determines the content)
Purpose of the website

Limitations...
Web safe colours
Web safe typefaces
File size
Resolution, screen size 800x600

Working with html

html stands for.. Hyper text mark up language

<body>
body of the webpage, content
</body>
close body

<html>
indicates to the computer that we are speaking in html language
</html>
closes the html language


<title>
web browser title
</title>

close title


<head>
Something thats not visible, descriptive, eg google search words

</head>
close head

For a simple website design, the html tags would go in this order

<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>

These tags will appear on every website, but with more content and complex html coding included.

Simple html coding for basic website saying 'hello world!'... the first ever website created on the world wide web.


Other tags...

script or javascript allows you to use more advanced features of the web as html can be quite restrictive.

td hight and width, is table data or tr is table rows.

metalane, google search engine, key words .

div is directly linked to css, linked to how everything is divided into boxes.


To start we need a root folder, which we can call anything you want. The web domain name is usually best. Then we need an images sub folder. Every website in the world has these two folders. A root folder and an images sub folder.



Welcome screen.
Middle column, languages.. html, PHP (if a website, Amazon for example has a lot of similar pages, like products then a separate page isn't designed for each one. A spreadsheet is made and the product is accessed and the page redirected through this).


Create a new page

You can select between three biews, code, split and design.





Create a new site




Click on the folder and select your root folder


Save your page straight away in your root folder. It will have to be called 'index' which is the internationally recognised word for your home page.



You can preview your website in different browsers by clicking on the globe.


At the moment the page is called untitled page, you can change this between the title tags.






Anything you type between the body tags will appear on your site.






Create a new document (command and n) and select css, then save it into your root folder as a style sheet.



To edit the body type in body { and a drop down menu will appear.



Always put the attributes on a new line to make it as clear as possible.

select font family.








The final css coding for the font and colour of the text.
 Save this as 'style sheet' in your root folder.

Attach the style sheet to the html by clicking on the link icon and select the style sheet file in your root folder.






Edit the style sheet to add a background colour (hash tag is alt 3)

Save and then add to your html by adding the following inside the body section of your html. If you type <div id a drop down menu showing the wrapper title will automatically appear.




Now add to your css coding to add a navigation box to your design.




Add this to the body section of you html coding by typing <div id and selecting navigation.




Open a new Photoshop document to make a logo. Add the right size and make sure the background is transparent. Make sure that the document is set to web.
 Save as web & devices as a PNG






Adding buttons

 I need to include ;

}

om the end of the background colour for it to work.

Woo!










html colour codes...
http://www.computerhope.com/htmcolor.htm