/    Sign up×
Community /Pin to ProfileBookmark

restrict table length.

I’ve set up a wordpress blog on a local intranet but the drop-down menu’s look a bit messy. I’ve tried all the solutions I found on google to resolve this but when ever I try and input the code it either does nothing at all or completely breaks it.

This is what it currently looks like
[img]http://imgur.com/9c8PF.png[/img]

This is my current code. (for one of the drop-downs)

[code]<br><li><b><script src=”http://192.168.16.253/social.js” language=”JavaScript” type=”text/javascript”></script></b> </li>
[/code]

And this is what the corresponding .js file looks like

unction menu_goto( menuform )
{
// Generated by thesitewizard Navigation Menu Wizard 2.3.2
// Visit [url]http://www.thesitewizard.com/[/url] to get your own
// customized navigation menu FREE!
var baseurl = ” ;
selecteditem = menuform.url.selectedIndex ;
newurl = menuform.url.options[ selecteditem ].value ;
if (newurl.length != 0) {
location.href = baseurl + newurl ;
}
}
document.writeln( ‘<form action=”chgoto” method=”get”>’ );
document.writeln( ‘<select name=”url” onchange=”menu_goto(this.form)”>’ );
document.writeln( ‘<option value=””>Web Aggregators</option>’ );
document.writeln( ‘<option value=”http://www.digg.com/”>Digg</option>’ );
document.writeln( ‘</select>’ );
document.writeln( ‘</form>’ );[/code]

Any help would be greatly appreciated.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 24.2009 — I presume you mean restrict the length of the dropdown?
Copy linkTweet thisAlerts:
@bobbydroptableauthorNov 24.2009 — Yeh, sorry. must've be daydreaming when I wrote the title.
Copy linkTweet thisAlerts:
@FangNov 24.2009 — This is usually done by changing the select to a list.

jQuery combobox
Copy linkTweet thisAlerts:
@bobbydroptableauthorNov 24.2009 — Those blogs posts are really vague and don't make much sense to me.


Is there not a way to restrict the current box by pixel size?
Copy linkTweet thisAlerts:
@FangNov 24.2009 — Restricting the width is possible
select {width:5em;}
This works in all browsers except IE where long option text is cut off.

The solution was given in my previous post.
Copy linkTweet thisAlerts:
@bobbydroptableauthorDec 01.2009 — *sigh* can someone BESIDES fang answer?


Anyone know how to do this?
×

Success!

Help @bobbydroptable spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...