html

How do I make Flash dynamic text field <a> links fire events on mouseover?

Question says it all really, but I don't mind if any answers are AS2 or AS3 solutions, just curious really - seems weird that I couldn't find out how to do this really quickly. ...

How to set the width of a list, in css

I have the code, as below. It's a bit annoying to have the text not align (it affects other li elements). How can I make it a fixed-width? I've tried width=XYZpx but that did nothing. <li class="date">2/28/2010 9:37:38 AM</li> ... <li class="date">3/1/2010 9:37:38 AM</li> css li.date { background : url(/icons/date.png) no-repeat l...

Turning HTML character entities to 'regular' letters... why is it only partially working?

I'm using all of the below to take a field called 'code' from my database, get rid of all the HTML entities, and print it 'as usual' to the site: <?php $code = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $code); $code = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $code); $code = html_entity_decode($code); ?> H...

What is the most semantic way to display a street address in HTML?

I have an address that is going to be displayed on a webpage, but it is not the address for the author of the page. How should this be coded to be semantic given the w3c recommendation of: The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element...

Making a piece of text non-breaking?

Hello, say I have a piece of text like this Hello I am some text Hello I am some text Hello I am some text Hello I am some text I do not wish to be broken on new lines Consider the above paragraph. I want for the bolded part to not be broken across a new line if possible. As in, I want it to break if it would require a scroll...

Why do many sites minify CSS and JavaScript but not HTML?

Possible Duplicate: Why minify assets and not the markup? I have seen a lot of sites using minified CSS and JavaScript to increase website response time but I have never seen any sites use minified HTML. Why would you not want your HTML to be minified? ...

Optimizations to reduce website loading time

What are some important optimizations that can be made to a website to reduce the loading time? ...

Using javascript to check if a HTML table cell is empty?

Is these some simple JS code that allows me to check whether a cell is empty. I am trying to code a function that is called using "onmouseover=func()"; I just cant seem to get the JS code right. Any ideas? What im ideally trying to work toward is a code that can detemine whether a cell is empty and if so, place a simple value in, like...

HTML set image tab browsers

How to set a little icon,beside web site title,on tabs in web browser? ...

Enlarging Image in New Window?

I just did a quick search for my question and couldn't find anything directly on point. I'm still very new to HTML and was wondering if someone could tell me how I could add a picture to my website and set the code so that if I click on it, it enlarges the picture in a new window. I'm going to be adding around 600+ pics to my website...

How do I display a gif animation to the user while a picture is loading (in the web)?

The problem: I have set of pictures, when the user presses on one of them, it's grow to an area in the page. The exchange of the pictures is done with the help of js. Tthe picture is weigh about 0.5M, therefore it's take about 3 sec until the picture is showed. I would like to present a type of animation while the picture is not displa...

read only property for checkbox

Is there a read only property for a checkbox? Because I can still tick on the checkbox even if I have this code, is the read only property only for text box? What's the code if you want the check box to be read-only? <td><input name="stats1" type="checkbox" id="SSS" readonly="readonly" value="<?php echo $row["STAT"]; ?>" <?php echo $row...

How do you center text and image in a table cell?

Here's a simple web page. I would like the text as well as the image to be vertically centered in the cell. I would like the text to the left of the image, but that shouldn't be a problem... Could you help? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html...

How do I look under the covers and see how HTML is rendered?

For example: <input name="abutton" type="button" value="This is not a button" /> I know this gives me a button. But I also know that someone had to figure out how wide my text was, draw a button of the correct size, place my text in there... etc. Let's use Mozilla as an example. I did some googling and found this, so I think I'm on...

Concurrent downloads - Python

Hi folks, the plan is this: I download a webpage, collect a list of images parsed in the DOM and then download these. After this I would iterate through the images in order to evaluate which image is best suited to represent the webpage. Problem is that images are downloaded 1 by 1 and this can take quite some time. It would be gre...

Does Meta Refresh work during page load?

Page A has a meta refresh to redirect to another page, C, after a certain amount of time (time T). From page A a link is clicked that takes a long time to load, longer than time T, and would eventually load another page; B. Will the meta refresh on page A cause the page to be re-directed to C, or will the processing of the link overri...

How do I unescape HTML entities in a string in Python 3.1?

I have looked all around and only found solutions for python 2.6 and earlier, NOTHING on how to do this in python 3.X. (I only have access to Win7 box.) I HAVE to be able to do this in 3.1 and preferably without external libraries. Currently, I have httplib2 installed and access to command-prompt curl (that's how I'm getting the source ...

Hiding HTML Table rows when using Sorttable

Hi, I have a large table (4000 rows, 17 columns) with which I use Sorttable. It's somewhat usable in Chrome (not so much in IE). I'd like to add some checkboxes (not on each row, just in a control panel besides the table) to show/hide groups of rows, using javascript. I'm not (so far) using JQuery or anything other than Sorttable (which...

Adding an icon to form button

I am using the following code to position an icon on top of a button: <a href="/users/hide_profile" class="button"> <span class="hide_profile">hide public profile</span> </a> a.button{ background-image: url('/images/button.gif'); display:inline-block; position: relative; _display: inline; color:#888888; font-w...

what is the use of a "PRE" tag in (X)HTML

what is the use of a "PRE" tag in (X)HTML ...