Results 1 to 4 of 4

Thread: have two links in the same field

  1. #1
    Join Date
    Nov 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default have two links in the same field

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem: I would like to have two links in the same field, specifically mini flags. The DDscript menu is structured so that when you add a link in the code it places it on a separate line, so I can not have two flags side by side, only each one on a new line:

    Code:
    <a href="javascript:ajaxpage('/code/menu_es.htm', 'leftcolumn');"><img border="0" src="/imagery/es_flag.png"></a>
    <a href="javascript:ajaxpage('/code/menu_pl.htm', 'leftcolumn');"><img border="0" src="/imagery/pl_flag.png"></a>
    How do I get flags (which are independently click able) to be on the same line, while doing different things when clicked?

    site: www.meta.projectmio.com

    Thanks.

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    in the css change :
    Code:
    #leftcolumn a {
    border-bottom:1px solid gray;
    display:block;
    font-weight:bold;
    padding:3px 1px;
    position:relative;
    text-decoration:none;
    width:100%;
    }
    to
    Code:
    #leftcolumn a {
    border-bottom:1px solid gray;
    display:block;
    float:left;
    font-weight:bold;
    padding:3px 1px;
    position:relative;
    text-decoration:none;
    }
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. #3
    Join Date
    Nov 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default rollovers

    Hey it worked, I added "float:left;" and took away "width:100%;", I shouldn't sound so surprised should I. Problem is now the auto formatting is ugly, I think I could add in spaces to make everything equal, shame I can't just apply that css change to the flags only.. is that possible

    I also neglected to mention that I thought the flags were too bright, I will change them to be dimmer but on hover I would have liked them to illuminate to the current brightness. Done easy enough with rollovers, but in this menu I'm not so sure.

    Thanks for your help by the way, any ideas on what I've gotten myself into?..

  4. #4
    Join Date
    Nov 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Oh wait, I did it with a script from http://www.htmlcodetutorial.com/imag...amsupp_59.html

    I think my script is messy, I'm no designer but I just keep adding stuff. Do you think there is a better way for me to organise my page?

Bookmarks

Posting Permissions

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