Showing posts with label Web Development. Show all posts
Showing posts with label Web Development. Show all posts

Tuesday, February 5, 2013

How To Use Dreamweaver

How To Use Dreamweaver

Before you begin, Turn on your Dreamweaver Program!
1
Before you create your webpages, begin by creating a folder that will contain your entire website. Go to the File menu and from the drop down menu select "New Folder.

2
For this this exercise, click on the "untitled folder" and let's name our folder (sometimes called a "Directory") "my_web_site"
It is important as a rule-of-process, to always name folders, webpages and images with lowercase text and no spaces in their naming.
Other text that is not usuable in naming pages, images and folders are: [ !,-,@,#,$,%,^,&,*,(,)?,/,<,+,= ]

3
Open your "my_web_site" folder and create a new folder and name that new folder "images". The purpose of creating subfolders (sometimes called "sub-directories") are to hold specific files in our website.

4
Once we create and import images for our web pages, we will save those image files here. The purpose of these subfolders is to ensure better organization of your files.

5
Other types of subfolders that you may eventually include will be folders for your music, animation, and printable document files called pdf's.
Again the main reason for these subfolders is so you may organize your contents.

6
Now we can create our "Site" within Dreamweaver. Go to and click the Menu tab labeled "Site". From that drop down menu, select "New Site"

7
You should see a dialogue box appear, make sure the "Advanced Tab" is highlighted. Your instructor may opt to take you through the "Basic" tab sittings at first.

8
First we give our site a name (usually best to name the site the same as our folder we created earlier, except in this case you may have spaces).

9
Next we select the destination of our local root folder. This is the folder we just created for our website. Dreamweaver will assist us in managing our site. Click on the folder icon to right of lable for Local Root Folder: and navigate over to where you saved your "my_web_site" folder, click on that folder and then say choose.

9a
In the future, you may create your website folders with this option within the site manager.

9b
As well as Images folder and other sub folders may be created through site management options.

10
When you have finished defining your site, this is what you should see in your site manager.

11
Now lets create a blank web page to begin our work. Within Dreamweaver, go to "File" and click. From the drop-down menu select "New"

12
You will see a dialouge box that asked what sort of work you are doing. In this case make sure Basic Page and HTML are high-lighted and then click on "Create"

13
Next we need to be in the practice of before we begin our work, we should always name and save our files. Since this page will serve for now as our "Home Page" we always name our home page the "index" page. This is because when someone goes to your website, as in your case, "my_web_site". Their Internet browers looks for the "index" page as the first page. So save this page with the name index.html.
Save this index file to your site folder "my_web_site"

14
You should see this in your site manager. If your "Site" manager window is not open, just as when you created your site as in Example #6, Go to the "Site" menu, and select "Open Site" and then select "My Web Site" from the list and you can see the Site Manager. From this list you may select any file. Select the index.html file if it is not already open on your desktop.

15
When we see our index page (homepage) we can now give our website a title.

16
Click within the "Title" box and give your website a greeting, such as "Welcome to my website", that would include your name or name of materials convered in the website.

17
It should look something like this in the Title Bar

18
We could begin entering information on the index page as it is now. Yet to better organize information on your page, let's insert a table with a specific size and begin there to format our web pages.
Go To the "Insert" Menu item and then on the drop-down menu, go to and click "Table"

19
You should see a dialogue box that contains information about the Table you wish to insert. As you can see we have several options. For this exercise, lets create a table with 1 (one) Row, 1 (one) column, "fixed" at 640 pixels option, 0 (zero) border, and 0 (zero) cell padding. Once you become better aquainted with web page layout, you will want to utilize these options at a later time.Choose "OK" when you have finished.

20
Once you have inserted a Table, you have several options from your "Properties" Window. If you do not see your "Properties" Window, go to and click on the Window drop-down menu and click "Properties. The table has to be high-lighted (as on the left) to utilize the Properties window. Now you may work with the available back ground and border colors.

21
To choose your table, use the arrow tool to high-light the table. To make changes in table colors, use the "Properties" Toolbox display from the Menu "Window" to adjust "Brdr Color" for Border Colors.

22
To adjust the Border sizes, select the table and change the number within the "Properties Menu. To have a table without borders, input "0" zero.

23
To choose your table, use the arrow tool to high-light the table. To make changes in table colors, use the "Properties" Toolbox display from the Menu "Window" to adjust background colors choose "Bg Color" and select from the color menu.

24
Before you place text or images in your table, click in your table with your curser and select the appropriate alignment from the Properties Window". Depending on how you plan to create your page, you may choose from "Left, Center, Right". Default settings may be to the left. In the case of this exercise, choose the "Left" setting.

25
You may now type in or paste text from another document (i.e. - Word, or html) into your table. High-lighting the text gives you the option to change the colors of the text within the "Properties Box"

26
For Bright backgrounds you need to choose a light colored text, or better yet, rethink your color schemes for your backgrounds.

27
When using colors for text and table, be sure that you used colors that are high in contrast versus colors that are similar.

28
This is a more appropriate way to set your table and font colors. It is best to use high contrast when displaying text in a web page. You may also try light-colored text on a dark back ground.

29
Now lets insert an image into your website. Click your curser into the table you created.Go to "Insert: Menu and in the drop-down, click on Image.
You may need to either scan an image or seek a copyright free images from the Internet. If you scan an image, or take one with a digital camera, the resolution of the image needs to be 72-100 dots per inch (dpi) to work on the Internet correctly.

30
Addtionally if you want to insert other media, this is the same procedure, just go to the "Media" drop-down item and choose the appropriate media, (i.e.) Flash animation.
To continue with Image Insert, you will have to navigate to where you have your image saved. Sometimes it is best to save the images you will use in the "images" folder within your site. Dreamweaver will ask you if you want to save it there, if you have not.
Select the image you have saved and say Choose.

31
Once the image is chosen, it will be placed it into your table, to the left, right, or center, depending on how you have set up the alignment (see example 24).
You need now to name your image. Click on your image, the "Properties Box" changes depending on what is sellected. In the right upper corner is a section for "ALT" In that box, name what the image is. This option is for those that use the Internet with disabilities and may be unable to see images. This option alloys them to hear what the image is. If it is not assigned a name, the person using ALT tags will only here, "Image". It is a good policy to learn to add Alt tags to your images and Hot Spots for Persons under the American Disabilities Act (ADA)

32
Once your image is added to your website, it should show up in your site manager as shown here.

33
If we would like to make a Hot Spot over an image so we can add a Link to another site. First high-light the image. Next from the lower left side of the Properties Box, select the appropriate type of Hotspot (Squares, Circles, Polygons) and draw a Hot Spot over your image.

34
Again you have to name your Hot Spot in the Alt Tags Box. In this case, "The Washington Monument" is the appropriate text. Next you need to add the link to the external website. In this case it is http://www.nps.gov/wamo/home.htm
Once you have done this, you can test your link by going to "File" to the drop-down menu to "Preview in Browser", and select the Browser. A temporary copy of your webpage will be displayed and you can test your links.
To create a link to another page in your site. First you must create a new html document, just as was done for the "index" page. This time you may name the new document as you wish, just remember:
It is important as a rule-of-process, to always name folders, webpages and images with lowercase text and no spaces in their naming.
Other text that is not usuable in naming pages, images and folders are: [ !,-,@,#,$,%,^,&,*,(,)?,/,<,+,= ]

Saturday, February 2, 2013

How To Add Different Background Color Or Image In Each Blogger Post


How To Add Different Background Color Or Image In Each Blogger Post

If you have multiple authors in a blog or want to make a specific post stand-out, you can make your posts to appear in different color or place a background image behind your posts.
In this tutorial i will show you how you can do this by adding some simple codes in your Blogger posts. (observation: this won't take effect if you have the read more function enabled on your blog...)


Change the color of the post background

When you create a post, switch to Edit HTML, near the Compose tab.
Add the following code just at the beginning and at the end of your post content.

<div style="background-color: #DCC368; padding: 5px 8px 5px 8px;">
Your text goes here...
</div>

  • place the red line at the BEGINNING of your post.
  • add the div tag in blue at the END of your post.
  • replace the part in green with preferred color hex value.
  • instead of "Your text here...." you will have your Post content.

It's done by wrapping your Post content into a "div" element. You can apply this setting anytime to your already published posts too or change/remove it.

Here's the example of the placed code in the Post Edit box:
blogger posts color, backgrounds, blogger tricks

Add a background image behind the Blogger post

<div style="background-image: url(IMAGE-URL-HERE); background-repeat: no-repeat; ">
Your text goes here...
</div>

  • in green, you need to place the URL address of your hosted picture (use Photobucket, Tinypic etc.)
  • in red is the line you have to place at the BEGINNING of your post.
  • in blue is the line you have to place at the END.
  • instead of "Your text here...." you have your Post content (if not, switch back to Compose tab, type your post content and then come back to edit your post)

Now click PUBLISH POST and you are done.

Recommended Post Slide Out Widget For Blogger


Recommended Post Slide Out Widget For Blogger

You know those popup messages that slide out from the bottom right corner once you’ve almost reached the bottom of the page? Well, they used to be available only on WordPress but not anymore; now Blogger users can enjoy it too! The Recommended Post slide Out Widget is an invitation to the reader to read any other post once he has read one of your blog entries. It's both useful for you (can improve your Click Through Rate (CTR) ) and for your blog visitors too.

Demo
Scroll down to the bottom of the post and you should see the Recommended Slide Out Widget appearing in the right corner of blog's page.

recommended post, widget, design


How to add the Recommended Post Slide out Widget

1. Log in into your Blogger account, then go to Design (or Layout) > Page Elements
2. Click on Add a Gadget Link
3. Choose "HTML/JavaScript" option
4. Paste this code inside the empty box:

<div id="hlslidein" style="display:none;"> <div class="help">?</div><div class="expand">+</div> <div class="close">X</div> <p>Recommended for you</p> <div id="hlslidein_image"></div> <div  id="hlslidein_title">Loading..</div> </div> <script> if(document.location.href.split("/").length==6&&document.location.href.indexOf(".html")!=-1){if(typeof hl_onload_queue=='undefined')var hl_onload_queue=[];if(typeof hl_dom_loaded=='boolean')hl_dom_loaded=false;else var hl_dom_loaded=false;if(typeof hl_async_loader!='function'){function hl_async_loader(src,callback,id){var script=document.createElement('script');script.type="text/javascript";script.async=true;script.src=src;script.id=id;var previous_script=document.getElementById(id);if(previous_script)if(previous_script.readyState=="loaded"||previous_script.readyState=="complete"){callback();return}else{script=previous_script}if(script.onload!=null)previous_callback=script.onload;script.onload=script.onreadystatechange=function(){var newcallback;if(previous_script&&previous_callback)newcallback=function(){previous_callback();callback()};else newcallback=callback;if(hl_dom_loaded){newcallback()}else hl_onload_queue.push(newcallback);script.onload=null;script.onreadystatechange=null};var head=document.getElementsByTagName('head')[0];if(!previous_script)head.appendChild(script)}}if(typeof hl_domLoaded!='function')function hl_domLoaded(callback){hl_dom_loaded=true;var len=hl_onload_queue.length;for(var i=0;i<len;i++){hl_onload_queue[i]()}}hl_domLoaded();hl_async_loader("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",function(){hl_async_loader("http://helplogger.googlecode.com/svn/trunk/Recommended Post Slide Out For Blogger Blogspot.js",function(){},"hl-out-slide")},"jQueryjs")} </script> <a href="http://helplogger.blogspot.ro/2012/06/recommended-post-slide-out-widget-for.html" target="_blank"></a>

5. Save The Widget.
6. Go to Edit HTML > Check the "Expand Widget Template" box
7. Search (CTRL + F) for the following code :

<div class='post-footer-line post-footer-line-1'>

OR

<p class='post-footer-line post-footer-line-1'>

OR

<data:post.body/>

Immediately below any of these lines, add the following snippet

<b:if cond='data:blog.pageType == "item"'>
<div style='display:none' id='bpslidein_place_holder'></div>
</b:if>

Now when the reader scrolls down to this div, the slide will open up.

8. Save your template. And that's it!

How do I add a Facebook "Like" button to my homepage



How do I add a Facebook "Like" button to my homepage


Facebook's Like button lets a user share your content with their friends on Facebook. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website.


To have a Like Button on your Home Page, you'll need to make sure that you have a Facebook page first.

Generate the Code for the Like Button


1.) First, follow this link: https://developers.facebook.com/docs/reference/plugins/like/

2.) Fill in the required information and click on Get Code. (The URL to Like is your Facebook page URL.)
2011-12-27_1429_001.png
A lightbox will now display on your screen with the three different ways of implementing the Facebook Like button; the most flexible is the HTML5 version, though the most compatible is the XFBML version.  The IFRAME version is the easiest to install, but you will not be able to have a "Send" button as you see in the above graphic.  Keep this page open while we navigate to the correct area on your store.


Installing the Code on your Store

All versions will need to be installed on the default.html page to display on your Home Page. (If you have a custom Home Page or want to place these somewhere else, you will need to go to that template file to place the code there.)

1.) Login to your store's Control Panel.
2.) Click on Design.
2011-12-13_1628.png
3.) Click on the Browse Template Files button.  This will open a new window with the contents for your Home Page (default.html).
2011-12-27_1430.png

Here's where the instructions diverge, so click on your chosen version of the Facebook "Like" Button:
HTML5 vs. XFBML vs. IFRAME

HTML5:
4.) From the page where you generated your code, copy the content in the top box.
2011-12-27_1427.png
5.) Go back to your default.html, and paste the code after the opening tag.
2011-12-27_1439.png
6.) On the page where you generated your Facebook code, copy the content in the second box.
2011-12-27_1427_001.png
7.) Back on default.html paste this where you want the code for your Facebook Like button.  Here, we are pasting it to display above all the content in the middle column.  You may choose to paste this information where you like, however.
2011-12-27_1440.png
8.) Click Save in the top left corner.
2011-12-27_1442.png
9.) Visit your home page to make sure the Like button is now there.
2011-12-27_1448.png


XFBML:
4.) From the page where you generated your Facebook code, copy the content in the first box:
2011-12-27_1427_002.png
5.) Go back to your default.html, and paste the code after the opening tag.
2011-12-27_1439.png
6.) Go back to the Facebook code page and copy the content from the second box.
2011-12-27_1446.png
7.) Back on the default.html page, add your copied code to the tag as you see below.  You will need to delete the non-highlighted portion as you see in the above picture.
2011-12-27_1447.png
8.) Now, go back to the Facebook site and copy the last box of code.
2011-12-27_1428_001.png
9.) On your default.html page, copy the final piece of code wherever you want your Like button to display.  For this example, I pasted it above all the content in the middle column.
2011-12-27_1452.png
10.) Click Save in the top left corner.
2011-12-27_1442.png
11.) Go to your home page for your store and make sure that your Like button displays.

4.) From the page where you generated your Facebook code, copy the content from the box.
2011-12-27_1429.png
5.) Go to your default.html page and paste in the code wherever you want your Like button to appear.  For this example, we're pasting it to display above all the content in the middle column.
2011-12-27_1458.png
6.) Click Save in the top left corner.
2011-12-27_1442.png
7.) Go to your store's home page to make sure the button is displaying properly.
2011-12-27_1459.png