HTMLHTML TutorialHTML Codes/Generators
HTML Background Code
HTML TagsHTML Color HTML Color Chart HTML Comment Box Code HTML Scrollbox Code HTML Text Code HTML Image Code HTML Marquee Code HTML Music Code HTML Video Code HTML Form Code HTML Frames Code HTML Entities HTML Examples HTML Help/Cheat Sheet HTML Templates More Codes... HTML Generator HTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator MySpace Generators More Generators... HTML 5 Tags Create a Website
$1.99 Domain Names
With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
Picture Scroll BoxDid you know that you can add pictures to your HTML scroll box? There are two ways to add pictures to your scroll box - as a foreground image, and as a background image. Foreground PictureForeground pictures are ideal if you want to have many pictures inside your scroll box. If you want your users to be able to scroll through a list of images, use this code. (Note that this example uses two images, but you can have as many images as you want). HTML code: Result: ![]()
Note that the code on this page assumes that there's an image at the specified location (http://i516.photobucket.com/albums/u323/natural_pics/milford_sound.jpg). You will need to change this value to the URL/location of an image that you have uploaded to the web. Hyperlink the ImageThis example is exactly the same as the previous example, except that this time we're linking the images to another website. When we click on each picture, a new window will open with the web page as specified in our HTML code. To do this, we simply surround the picture code with an HTML anchor tag (or 'a' tag) to create a hyperlink. I've also removed the border (using HTML Code: Result: Background PicturesYou can add a background picture to your scroll box instead of a foreground picture. Background pictures are perfect for when you want to add text over the top of your picture. Here's an example: HTML Code: Result: Background pictures are ideal for when you want to place text over the top of your picture. When using a background picture, scrollbars will only appear if we have enough text in the scroll box.
For more information on adding background images, check out the HTML background page. |
Need Website Content?
Get unique, quality digital content for your website.
|