Jump to content

MAKING BUTTONs?


ali_2kool2002

Recommended Posts

it depends on what you mean "buttons." You can go to another page by <a href="http://www.yoursite.com>Click here to go to my website</a>

 

But if you want to use images to link to a page its a different story. And if you want to make a button, well good luck to you! That is going to take sometime. Because you need to use rollover pictures with javascript or use flash. I used javascript for rollover images but it took me over an year to actually do it. So for now stick to normal text or image links. As you get more experience in html and javascript you can go to "button" links.

 

Hope that helps!

Link to comment
https://forums.phpfreaks.com/topic/43265-making-buttons/#findComment-210303
Share on other sites

Hi,

 

You could use the button tag for buttons but you will need javascript to redirect when you click the button:

<script>
function jsGotoPage(url){
  window.location=url;
}
</script>
<button onclick=jsGotoPage('http://www.google.com')>goto google</button>
<button onclick=jsGotoPage('http://www.youtube.com')>goto youtube</button>

 

another option is to use an image for a link this will not require javascript

<a href="http://www.google.com"><img scr="button.jpg" alt="button" /></a>
<a href="http://www.youtube.com"><img scr="button.jpg" alt="button" /></a>

Link to comment
https://forums.phpfreaks.com/topic/43265-making-buttons/#findComment-210498
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.