Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.