Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 08:56:37 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Buttons  (Read 429 times)
Canvas
Pong! (the videogame) Master
*****
Offline Offline

Posts: 20


« on: April 12, 2007, 02:11:14 PM »

Hello,
  I am trying to rebuild our website and I have a page I really like http://www.canvasdesigners.com/Products.htm
However some of our logos have changed and we have new products we would like to add.  I can not for the life of me figure out how these were created.  They act like buttons but I can not find anywhere to add/delete/change an image inside the button.  Does anyone have an idea on how I can either edit them and create new ones.
Thanks in advance.
Logged
MrPhil
Über Jedi
*****
Offline Offline

Posts: 2825


« Reply #1 on: April 12, 2007, 02:26:04 PM »

On the page in question, you do a View > Page Source in your browser, and it will show you the code it's using. For the buttons, they're simply links (<a href="oceanair.htm"> ... </a>) with an image instead of a text label (<img ... src="buttons/OceanAirNormal.jpg" ...>). The magic is the Javascript stuff: onmouseover= swaps the image with another one (with the colored fringe) when you move your pointer over it, and onmouseout= swaps it back when you leave. They're just ordinary JPEG images that are being swapped with each other. I don't know if you'll be able to salvage these button images and modify them in Photoshop or GIMP, but you can try. By the way, whoever did the orginal code should be shot for having alt="......................". Alt tags are vital for visually impaired people and visitors using graphics-less browsers.
Logged

gentact123
Newbie
*
Offline Offline

Posts: 1


« Reply #2 on: May 09, 2008, 08:39:20 AM »

It looks easy to fix it, e-mail to me , I will try to fix it.
Regards
George Chou ; dave@ms22.url.com.tw
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM