html

Do you know eclipse plugin to change localised text into html entities?

I have resource bundle with my country characters - how to change them into html entities. I prefer plugin integrated with Eclipse to have all tools in one place. ...

Need a good regex to convert URLs to links but leave existing links alone

I have a load of user-submitted content. It is HTML, and may contain URLs. Some of them will be <a>'s already (if the user is good) but sometimes users are lazy and just type www.something.com or at best http://www.something.com. I can't find a decent regex to capture URLs but ignore ones that are immediately to the right of either a do...

How to stop title attribute from displaying tooltip temporarily?

I've got a popup div showing on rightclick (I know this breaks expected functionality but Google Docs does it so why not?) However the element I'm showing my popup on has a "title" attribute set which appears over the top of my div. I still want the tooltip to work but not when the popup is there. What's the best way to stop the tooltip...

How do I pre-cache images for quick viewing with javascript?

I have a webpage where I want the user to see a new image when they put thier mouse over a certain part of the image. I used an image map. <img src="pic.jpg" usemap="#picmap" /> <map id="picmap" name="picmap"><area shape="rect" coords ="10,20,30,40" onMouseOver="mouse_on_write('mouse is on spot')" onMouseOut="mouse_off('mouse is off sp...

Easy HTML underline

I am creating a form in HTML that will be printed, with fields that need to be written in by the recipient. Basically what I want is a single line that stretches from the end of the field label to the side of the page. Here's how I'm doing it right now: <table width="100%"> <tr> <td width="1%"> Label: </t...

Match everything inbetween two tags with Regular Expressions?

How can I match (PCRE) everything inbetween two tags? I tried something like this: <!--\s*LoginStart\s*-->(.*)<!--\s*LoginEnd\s*--> But it didn't work out too well for me.. I'm kind of new to regular expressions, so I was hoping if someone would be kind enough to explain to me how I would accomplish this, if its even possible wit...

Seeking a compact format for HTML ebooks for offline reading under Linux

I have a netbook running Linux and a large collection of computer books and reference material as HTML. I'd like some compact way of storing these books which can be browed without unpacking them first. This would save space and reduce wear on my small SSD. If there was some way to convince Firefox to browse files contained in ZIP file,...

Is there a way to convert from System.Windows.Forms.HtmlElement to mshtml.IHTMLElemenet3?

Is there a way to convert from System.Windows.Forms.HtmlElement to mshtml.IHTMLElemenet3? --edit after answer accepted -- This is what the code would look like. HtmlElement myElement = getElementByID(id); IHTMLElement3 h3 = (IHTMLElement3) myElement.DomElement; Thanks @korchev ...

How can I remove a swf file that's embedded in html using a button in the swf?

Hi, I have a swf file that's embedded in a html page, and I have a close button in the swf page, I want the swf to disappear when I click on the button, what is the best way to do that? Thanks. ...

Get the position of a div/span tag

Can someone show me how to get the .top & .left position of a div or span tag when one is not specified? ie: <span id='11a' style='top:55px;' onmouseover="GetPos(this);">stuff</span> <span id='12a' onmouseover="GetPos(this);">stuff</span> In the above, if i do: document.getElementById('11a').style.top The the value of 55px is ret...

HTML hyperlink with mouse over image

I am having a Html hyperlink. I need to link this hyperlink to another page.When I place the mouse over the link. It should show the image. how to do this ...

php: capturing linebreaks (newline,linefeed) characters in a textarea

errr i checked the related questions using different re-phrase(s) of my question but nothing was related enough to my question.... anyway i have this form with a <textarea> and i wanted to capture any line breaks in that textarea on server-side and replace them with a <br/> is that possible? i tried setting the css of the textarea to whi...

Full-height CSS layout, with multiple columns

I have a layout that is working, but it has one very annoying problem.. when the content is taller than the screen, the background stops. This is the desired layout in bad-ASCII-art format: _____________________ _ | | long |logo| | | | content | | | | | | | | | | | | | |grad| |gr...

Scraping largest block of text from HTML document

I am working on an algorithm that will try to pick out, given an HTML file, what it thinks is the parent element that most likely contains the majority of the page's content text. For example, it would pick the div "content" in the following HTML: <html> <body> <div id="header">This is the header we don't care about</div> ...

Load HTML frames in a specific order without back button problems?

I have a web page that uses a frameset. Due to scripting and object dependencies, I need to load the frames in a specific order. I have used this example as a template: The JavaScript Source: Navigation: Frames Load Order This loads an empty page in place of the page I need to load last, then replaces it with the correct page after th...

Browser dependency problem in image display

Hi All In my page, I am displaying a report after the user selects some information. On a button onclick event, I am displaying an image which rotates itself to indicate to the user that the request is being processed. The image rotates in the Firefox but not in IE(it just displays the image). Please give me your suggestions. with re...

Difference between <input type='button' /> and <input type='submit' />

There is no such thing as a stupid question, so here we go: What is the difference between between <input type='button' /> and <input type='submit' />? ...

How can I position an element at the bottom of its container in Firefox?

I have a table cell, and I want a div within it to always be at the bottom left corner. The following works fine in IE and Safari, but Firefox is positioning the div absolutely on the page, not within the cell (code based on the solution solution here). I have tested both with and without the DTD, which put Firefox in Quirks mode and S...

Editing all external links with javascript

How can I go through all external links in a div with javascript, adding (or appending) a class and alt-text? I guess I need to fetch all objects inside the div element, then check if each object is a , and check if the href attributen starts with http(s):// (should then be an external link), then add content to the alt and class attrib...

HTML/CSS: Horizontal bar/design on sites like jQuery

I'm sure it's just simple html/css but I don't know what to call the bar (googling horizontal bar html always results in a horizontal rule). http://jquery.com/ has one - the grayish bar the runs across the top separating the menu from the content of the page. I'd love to make one of my own. ...