PDA

View Full Version : have two links in the same field



tinkermob
03-02-2009, 04:25 AM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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:


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

Master_script_maker
03-02-2009, 03:41 PM
in the css change :
#leftcolumn a {
border-bottom:1px solid gray;
display:block;
font-weight:bold;
padding:3px 1px;
position:relative;
text-decoration:none;
width:100%;
} to
#leftcolumn a {
border-bottom:1px solid gray;
display:block;
float:left;
font-weight:bold;
padding:3px 1px;
position:relative;
text-decoration:none;
}

tinkermob
03-03-2009, 01:52 AM
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?..

tinkermob
03-03-2009, 02:40 PM
Oh wait, I did it with a script from http://www.htmlcodetutorial.com/images/images_famsupp_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?