www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  WebPublisher PRO    Changing link to button
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I want to change a link on my search form to a button, e.g., a simple search form to the Advanced Search form. I would also like to change the help icon to a button. What's the best way to do this?
 
Posts: 3 | Registered: Thu September 24 2009Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
There are two approaches I can think of.

One is to style your links to look like buttons.
How to make sexy buttons with CSS
Scalable CSS Buttons
Rediscovering the button element (see "The Results" section)


The other approach is to define buttons that - when clicked - modify the page URL with javascript.
<input type="button" value="my button" onclick="window.location = 'http://www.google.com';" />
  


Peter Tyrrell, MLIS
Director and Lead Developer
Andornot Consulting Inc.
http://andornot.com/about/developerblog
http://twitter.com/andornot
 
Posts: 188 | Location: Victoria, BC, Canada | Registered: Thu September 20 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Brilliant! The javascript works perfectly. I'll explore the CSS options when I have more time.

Thanks very much.
 
Posts: 3 | Registered: Thu September 24 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  WebPublisher PRO    Changing link to button