html

Drop-down submenus overlap, how do I fix this?

I rendered this menu with Superfish and the Supersubs plugin: As you can see, the submenu that originates from parent "Long long long submenu item" isn't positioned correctly. I know what I need to do, but not how to execute it. First, I need to know the width of the parent menu. I then need to set the submenu's left attribute to tha...

Is there a way to preload TinyMCE?

TinyMCE is a big plugin to load at first. In nations with low bandwidth it takes minutes to load. So I am planning on preloading the tinyMCE so that the users dont have to wait for this to load. Any Idea? ...

I want to pass form data from my website to a website not owned by me.

I want to create a donation form on my website that forwards donors to the PayPal donation page at wikileaks.org. Wikileaks allows donations targeted for specific causes that Wikileaks supports. My website is fundraising for one of these causes. My form won't pass any secure information like credit card #s, etc. I want it to send only t...

jQuery: Executing code for each element that matches a selector

$("p") references all paragraphs on the current web page. Is it possible to execute code for each element that matched the selector? Here's a simplistic example in pseudo-code: // Show the background color of every paragraph on the page foreach (object = $("p")) { alert(object.css("background-color")); } ...

Can I validate and submit a form by a hyperlink control in C#.net?

Possible to use a link control to validate and submit a form? What would be the code to tie the click event of the link control to the submission functions? (I prefer link buttons much more than input buttons for styling across browsers.) ...

How to create a panel for admin to change some contents in HTML?

My question is this. There are some texts,reports written on the webpage under the div tag. This text should be changed once a week. But, the person who is updating can't use the simple copy and paste because, when he do that the whitespaces, enters are ignored. So, my purpose is creating a panel to change only that part of webpage with ...

JavaScript - How to make a sliding image viewer?

Hello. Can anyone explain how to create a sliding image viewer using javascript or jquery? From the ones I've seen, it looks like all the images are side-by-side and then buttons move the images across depending on the width of that image. Which shows the next image. There's one of these image viewers here. I'm not after the scrollbar th...

jQuery incorrectly reports a width of zero

I'm trying to access the width of certain elements by using jQuery's .width() function, but sometimes the return value is 0 when I don't expect it. Is this a known issue? Does an element have to be visible for this to work, perhaps? If there are limitations, how can I work around them? ...

How do you implement Javascript onfocus() and onblur() for a password field?

According to my title how to implement the onfocus and onblur to the password field? Default value is password (readable) and when we click the password field it will return to password format. Here an example, I don't want to see "●●●●●●●●" but "Password" instead <input type="password" name="password" value="password" onfocus="this.v...

Do embedded Youtube videos increase the site's bandwidth?

By having each classified ad with embedded Youtube video, will this increase the bandwidth of the site? If so, would iFrame help in anyway? Thank. ...

HTML/CSS: table rows height and border color

hi, I have an issue with the border color in the table in this page: http://dl.dropbox.com/u/72686/print.html I've added an empty row and specified a height to add some vertical space before the table bottom row. However I cannot change the border color of this row. it is always gray. All the css code is inline. thanks ...

How do I get the top and bottom bar like this?

Hey guys.. Check out the fading grey on top of the page and the grey for the footer here http://www.alcatel-lucent.com/wps/portal/BellLabs .. How do i get this using css... I tried using #bgtop{ background-image:url('bg_top.JPG'); background-repeat:repeat-x; margin-top:auto; } But this doesnt work.. Please help ...

HTML-CSS: item is always underlined

hi, I don't understand why the link ("55") in the top-right corner of this document is always underlined: http://dl.dropbox.com/u/72686/print.html I've specified text-decoration:none but it is still underlined. Update: I have an issue, I cannot add it to the link because it is self-generated html. Also, I don't have access to the t...

Fitting a <ul>'s width to accommodate the menu items

I have a menu that contains submenus. Its HTML source looks like this: <ul id="menu"> <li> <a href="javascript:;">Menu 1</a> <ul> <li><a href="javascript:;">Item 1<a></li> <li> <a href="javascript:;">Subitem 1</a> <ul> <li><a href="javascript:;">Subsubitem 1</a></li> </ul> </...

dompdf: how to remove borders from the rendered table in pdf ?

hi, I'm having some issues in displaying a table with dompdf: http://dl.dropbox.com/u/72686/domPdfTable.png The table contains all borders I don't have in my original table in html: http://dl.dropbox.com/u/72686/htmltable.png how can I remove these borders from the final pdf document ? thanks ...

dompdf: how can I remove the additional symbol before the currency ?

hi, I'm having some issues in displaying a table with dompdf. In the rendered pdf I have an additional symbol before the currency £: http://dl.dropbox.com/u/72686/domPdfTable.png how can I remove this symbol from the final pdf document ? thanks ...

How can I use the python HTMLParser library to extract data from a specific div tag?

I am trying to get a value out of a HTML page using the python HTMLParser library. The value I want to get hold of is within this html element: ... <div id="remository">20</div> ... This is my HTMLParser class so far: class LinksParser(HTMLParser.HTMLParser): def __init__(self): HTMLParser.HTMLParser.__init__(self) self.see...

How do I mark current option as selected?

I have pages like index.php?key=toplist&list=magic So if om on that page for example, i want the Magic option to be marked as selected in the select menu <select name="skill" onchange="window.location.href=this.form.skill.options[this.form.skill.selectedIndex].value"> <option value="index.php?<?=QUERY_STRING?>&list=experience">Experi...

How to convert a block of rendered HTML code or a div into a PNG?

A few notes: a) not an entire page, b) not from server side. c) rendered or "treated" HTML, for instance, <table> <tr><td width="5%"> <td>fact 1 </td> fact 2 </td> </tr> </table> desired results (for the PNG): fact 1 fact 2 fact 3 fact 4 ... not fact 1 fact 2 fact 3 fact 4 ... The <code> "sign"nbsp; </code> may ...

any good new web-developer browser addons? (as in released in the last 6 months)

I used to be pretty ontop of the latest plugins but it's lost my attention recently (probably due to so many itentical blog articles called 'the best {num here} addons for firefox'). Last time i looked i found: firequery and firepicker which are now indespensible, so what's new? any hot new extensions that have found their way into y...