How to add feed icons and links to your site

Posted by ljmacphee on April 19, 2007 under HTML, blogger, blogger template, how to | Be the First to Comment

Make it easy for people to add your blog to their rss feeds.

The rss feed for your blogger site is:
http://yourblogurl.com/rss.xml

The Google atom feed for your blogger site is:
http://yourblogurl.com/atom.xml

Test them by putting the url in your browser - you should see the xml feed or depending on your browser and settings an offer to add your feed to your current list of feeds.

If you are using wordpress your site feed is:
feed://http//yoursite.com/wordpress2/feed/

You can get copies of the standard feed icon here:
Feed icons

To make the link for your users:
<http://yourblogurl.com/rss.xml”><img src=”http://url_you_store_images.com/feed-icon-14×14.png”>&lt/a>

If you just want to add an ‘add to Google; button then Add to Google Button will write the code for the link and add the Google icon to your link for you.

These links can be added to a new ‘Link Widget’ in your blog Template.

Frame basics

Posted by ljmacphee on March 2, 2007 under HTML | Be the First to Comment

Frames have pretty much been phased out with the increasing use of CSS. However here are a few basics in case you still need to use frames.

Frames can make navigation around your site painless if they are properly coded or a nightmare if not. Frames like the menu bar at the left and the center frame here can be broken into rows or into columns. If you wish rows and columns you will have to nest your frames.

Example top page
< frameset cols=”23%,*” border=0 frameborder=no frameborder=0 >
< frame name=”menu” src=”webtools.html” >
< frame name=”information” src=”current.html” >
< /frameset >

Naming frames makes it easy to put your pages in the correct frame. The navigation menu links

< a href=”generaljava.html” target=”information” > Java < /a >

name which frame they should open into. This is the target. If you are linking an outside page, off of your site, you should use target=”_top” which will open the page in a new window rather than inside your frame.

Floating frames, like the navigation bar at the top are like opening a window inside a window. What makes it nice is that I can have one file with the menu bar and make changes as needed only to that file.

To link in a floating frame
< iframe src=”webtoolsbanner.html” > </iframe >

Change Webpage Daily

Posted by ljmacphee on February 27, 2007 under HTML, perl, tools | Be the First to Comment

I needed to update the TimesToCome Daily Horoscope page ( no longer on web ) but I didn’t want to have to do it manually. Now I can upload a week or month of new pages information and have the computer load the appropriate page for a given day by checking the system date. This script works great if you are only using straight html.

If you use Flash movies or javascript or other languages, they don’t work properly. The way to work around this is to use frames. Load your other languages and embedded code into the main frame and call the Perl script to update the secondary frame.

#!/usr/bin/perl#www.timestocome.com
#program to update a web page with new information daily.
##Name each webpage for each day you wish to appear daily_dayofyear.html.
##So the daily update for Jan 2 would be daily_2.html
#The page for Dec 15 would be daily_350.html ( don’t forget to adjust for leap years )
##put them off your top level directory in a directory#named daily.##Put this file in your cgi-bin directory with the proper permissions ( 755 )

###To use this link to#< a href=”http://www.yourdomain.com/cgi-bin/daily.pl > Page < /a >

#This link will bring up the page for today.

##############################################################
##################
#get day of year
$today = (localtime(time()))[7];

#add file extention
$tag = “html”;

#add file information
$name = “daily”;

#clean up and stick together to build file name
chomp($today);
chomp($tag);
chomp($name);
$temp = join “.”, $today, $tag;
$filename = join “_”, $name, $temp;

#open the file for reading
open(IN, “../daily/$filename”);
flock(IN, 2);

#lock the
fileseek(IN, 0, 0);

#rewind to beginning
#create the html page
print “Content-type:text/html\n\n”;
while ( ){
print ;
}

close IN;

Web Safe Color Chart

Posted by ljmacphee on February 23, 2007 under HTML, graphics | Be the First to Comment

Colors and Codes for Webpages.

At one time there were 216 colors considered web safe. That meant they showed the same on all browsers and computers. With time and better computers and monitors there were too many cool things to do with too many colors. So people stopped using these colors. But if it is important to you to have a consistent look everywhere these are the colors you should use.