Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: Buttons Direct

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Greetings,
    I want to just utilize the button as shown below to point to a specific URL.
    How can I do this?
    Also, is there a way to alter the size of the button?

    Thanks,
    Jack

    <form name="form1">
    <input style="font-size:14px;color:red;font-family:verdana;background-color:yellow;
    font-weight:bold;font-style:italic;"
    type="button" onClick="location=document.form1.menu.options[document.
    form1.menu.selectedIndex].value;" value="GO">
    </form>[/B]

  2.  

  3. #2
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    Code:
    width: Xpx;
    height: Xpx;
    Also, is your javascript there even correct?


  4. #3
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Thanks jlgosse,
    I didn't think so but it worked.

  5. #4
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Where should I put these?

  6. #5
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    where your other styles are
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  7. #6
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    Put then where you're other stylesheet information is, under something like this:
    Code:
    input.spec-button
    {
    width: 150px;
    height: 50px;
    background-color: magenta; /* hahah, magenta */
    border: 1px solid black;
    }
    That should do it for the stylesheet, so then, when you want a button to be like this, use the following code in your HTML file:
    Code:
    <input type="submit" id="spec-button" value="Submit!" />
    If you have any problems with that, check back with me, and I will try to help some more!



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:12 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com