Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Button with 2 different links

    Hello All,

    I am new in web design so forgive me if I am asking something too simple. I need a single button with 2 separate links showing both at the same time. One link would say something like Visitor ID: 43DY2P where the underline part is clickable going to a particular link, and the other link would be below it saying Powered By ABC Corp where the underline part would go to a link. I saw some examples where it works one at a time, but I need to show both of the links at the same time, and it cannot be next to each other. It has to be in separate lines. I also do not want to use images.

    Thanks

    Avi

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Canada
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could always use flash...so you want the two links seperate? like one link few spaces and then another link?
    Last edited by RawliJr; 05-10-2007 at 08:28 PM.
    Rawli

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    It would be two hyperlinks in 2 separate lines but within 1 button. However both of those links will not be the same all the time, as those links would be generated by some back end system, and the data would be parsed from the back end system to the button. What I mean is the Visitor ID would be different for each visitor (visitor will be our end clients) and the Powered By ABC Corp (could go to different links, as if I brand out my system to resellers, than that link could either go to my website, or my resellers website)

    Thanks

  • #4
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    I'm sorry, but I cannot follow what you are saying. I don't see where the button comes in?

    Could you provide some code showing what you currently have?

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Good morning avi1278,
    I think this is close to what your talking about?
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>one button - two links</title>
    <style type="text/css">
    * {
    	margin: 0;
    	padding: 0;
    }
    #navlist {
    	width: 130px;
    	height: 36px;
    	margin: 100px auto 0 auto;
    	border: 1px solid #f5d7b4;
    }
    #navlist ul a {
    	display: block;
    }
    #navlist li {
    	float: left; 
    	width: 130px;
    	height: 18px;
    	list-style-type: none;
    	text-align: center;
    	background: #FAEBD7;
    	color: #CD8162; 
    	font: 60%  Lucida Grande, Lucida Sans Unicode, verdana, lucida, sans-serif;
    }
    #navlist li a {
    	float: left;
    	width: 130px;
    	height: 18px;
    }
    #navlist li a:hover {
    color: #FFFFFF; 
    background: #DDA0DD; 
    }
    #navlist a:active {
    background: #c60;
    color: #fff;
    } 
    </style>
    </head>
    <body>
    <ul id="navlist">
    <li><a href="http://www.nopeople.com/">One button</a></li>
    <li><a href="http://www.codingforums.com/showthread.php?t=113922"></a></li>
    </ul>
    </body>
    </html>
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •