html

How to use CSS hover inside html-tag?

Hi! I want to do something like this: <li style="hover:background-color:#006db9;"> But it wont work. Is this possible to do in some way, or do I have to write the css in the head or external css-document? ...

Target='_blank' to show in new window, NOT new tab, possible?

How can I do this? In firefox the link opens in a new tab... I don't want users to have to set settings of their browsers for this... I want a pop-up to appear with contact-form whenever user clicks 'contact' on my main page. How should I do this? Thanks... ...

Languages / Libraries / Modules for building a "template builder" web application?

My company builds websites for membership-based associations. We currently use custom DLL's (written in CodeGear Delphi) which interact with a SQL Server database and use a custom HTML-based template language. Basically we build templates in HTML / CSS / Javscript with the dynamic parts being generated by tags in the format <#TAG NAME>. ...

how to postion two divs above each over

hey is there any way to start drawing divs from the same point that means if i add new div and then i add another div they will appear above each over because i want to move them all together depending on the same point CSS :: \#num1,#num2{ display : inline position:relative; left:50px; } HTML :: <div id='container'> <div id='num...

Broken HTML From AJAX Request Using JQuery

I'm parsing an XML file and trying to return the output to a div. However, for some reason .append() doesn't seem to be generating the correct HTML output. Here is the JQuery snippet: var list = $('<div class="response">').appendTo(this); list.append('<ul>'); $('item',data).each(function(i){ var dow = $(this).find("day").text(); ...

Validating forms in HTML, PHP, and JavaScript

If I am defining a function in JavaScript at the top of my page that validates if the string entered in a form is (A-Z,a-z, or 0-9). And then I call that function when they submit it saying : onsubmit="return Validator(this);" If the function name is : function Validator(form) Why isn't it actually validating the string submitted w...

Creating HTML according to files existance in the file system

Hi all, I am writing a web application (I am a newbie), where the markup is created by XSL and XML transformations and the style is declared by css files and also some use of JavaScript. I need to create a web page that part of its content is the information on files in a specific directory in the file system. Any ideas? ...

Wrapper DIV in 100% width website.

Im creating a website where the header, footer, body are all 100% width of the page, but I need all the content to be centered of the page no matter the resolution. I've tried using a wrapper but then the header and stuff are only 100% width of the wrapper and not the page. ...

regex - match not in tag

this should be easy but somehow I can't figure it out: I have HTML snippet like this one: <p style="padding:0 10 20 30; margin: 1 2 3 4 ">This is 201 some 20 text 1 <b>30</b> with some numbers 30 20</p> ... I need to match numbers 1, 20, 30 (only those) and replace them with links. Obviously I do not want to replace numbers inside tag ...

Can you access properties/methods of parent window from the child?

if I create a popup in JavaScript I can access its properties: var myWin = window.open("test.htm"); myWin.property1; but my question is, can I access properties/methods of parent window from the child? ...

jquery see if any boxes checked

How do I find out if the users have checked any of the boxes with jQuery? Thanks. <div id="boxes"> <input id='id1' type='checkbox'> <input id='id2' type='checkbox'> <input id='id3' type='checkbox'> </div> ...

Can't select text in input box on IE

I have an input box that is inside of a div, the div has a background image and the input box inside of it is positioned and limited in size / font to work nicely with the background image. In FF everything works as expected, in IE though there is a major issue. I can't select the text inside of the input box using the mouse or use sho...

HTML input text cannot select text using mouse

I have a HTML page with input text elements and textarea elements. Text typed into these elements can be selected with the mouse cursor. Clicking anywhere on the text value places cursor in that location. In some cases, the mouse functions stop working. Cannot use the mouse to place cursor or to highlight/select text. So far, I have ...

Check multiple boxes without scripting?

I'm building a website where one of the main features is a nice treeview menu used to select values. If a user clicks on a checkbox that has any children in its tree, I want it to check the children of that box. With scripting this is childsplay, of course, but I'm wondering if there's any equivalent to this with pure HTML/CSS? Basicall...

Brighten a section of a webpage background

Is there any way to have a semi-transparent overlay in a webpage and will brighten the underlying content? I'm wanting to have a dynamic content in the background of a transparent overlay with one section highlighted in a brighter than the rest of the background. For example, in the mock-up below there is a graph in the background, over...

HTML on Flash/Flash on HTML Toggle

HTML on Flash/Flash on HTML Toggle Hi. Does anyone know a Javascript API or some good way to launch HTML over Flash and then when the user interacts with the flash part it becomes Flash on HTML. It only needs to turn to html over flash when the user interacts with the flash part. ...

Understanding td width in Firefox 3.5 and Internet Explorer 8

Does someone have a good reference for how browsers determine td width? I have a table with 3 columns, td width set to auto, 150px, 200px, respectively. Looks pretty good in Firefox 3.5. In IE 8, columns 2 and 3 are huge, column 1 is much tinier than I'd like. I wouldn't mind the browser being a little smart (sometimes column 3 has l...

HTML Mails by Google - No HTML Code

I received a promotional mail from Google AdWords. Because I liked the layout, I thought of giving a look at the HTML source of the mail. When I clicked 'Show original' from the mail options, I saw no HTML code, but a bunch of encoded text. It was something like this: --===============0308376380== MIME-Version: 1.0 Content-Type: text/h...

How to animate Favicon

Just wondering if people can let me know how to animate favicon like done in this website: geoplugin Only seems to work in Firefox though and not IE6. ...

Center UL into a table

I have a code like this: <table> <tr> <td align="center"> <ul> <li style="float:left;display:inline">Some text</li> <li style="float:left;display:inline">Other text</li> </ul> </td> </tr> </table> The problem is that the UL with is 100% and then all UL is aligned to the left, how can i center the content into UL? I must have that styl...