html

How can I disable inherited css styles?

So I am creating a container with rounded corners using the following method: div.rounded { background: #CFFEB6 url('tr.gif') no-repeat top right; } div.rounded div { background: url('br.gif') no-repeat bottom right; } div.rounded div div { background: url('bl.gif') no-repeat bottom left; } div.rounded div div div { padd...

reduce server load by loading image files / javascript files from another server?

Hi, I am thinking to save server load, i could load common javascript files (jquery src) and maybe certain images from websites like Google (which are almost always never down, and always pretty fast, maybe faster than my server). Will it save much load? Thanks! UPDATE: I am not so much worried about saving bandwidth, as I am reduci...

What is this font? and CSS Help

This font in this image from the WhiteHouse looks very professional. What is the font? Is it just Times New Roman? Also, does anybody know how to use CSS to create something just like the image below? (So I can keep everything else in that image but change the text) Thanks!! ...

How do I wait until the user has finished writing down in a text input to call a function?

Hi, I'm designing a web site and I would like to be able to call a function 1 second after the last user input. I tried using onKeyUp, but it waited 1 second after the first keystroke. Does anyone know how would this be possible? ...

How Can I Change The Style Of A Div On Mousedown?, or any other event for that matter…

Hi. I have some code: <div class="winter spring" onmousedown="this.className='winter summer'" onmouseup="this.className='winter spring'"> <img src="Resources/season.png" /> </div> But it doesn't work. You can see I'm trying to change the class of the div containing season.png onmousedown and revert it onmouseup. What am I missing? ...

jQuery Traversing

Hi , My page has this design. <tr id="master"> <td id="row1"> <textbot> </td> <td id="row2"> <linkbutton> </td> </tr> I am cloning the same TR onclick of the linkbutton and the current link button will be hidden. so a new row will be created. consider I have cloned thrice <tr id="master"> <td id="row1"> <textbot> </td> <td id="row2...

using a variable in the input tag's style attribute.

Hi, I have a dropdown box with three values,small,medium and large.If the value is small, the text created should be 100px,if medium then 200px if large,400px. Based on this value can I save the size in a variable,and use that variable in the style attribute? For eg, I get the value of the drop down box as fieldsize=$('#fieldSize')....

How to process large amount of POST data from a textarea?

I am developing a tool where lots of data (>1MB of data) with lots of lines can be copied and pasted into a textarea. When I submit the form it just shows a blank screen. Nothing happens. Is there a way to process large data submitted by a form with PHP like in chunks and pieces? What are the best practices do handle large amount of data...

Can't Access CSS Selector's Properties from Javascript

Hello, Here's a very basic question: why is the finishLoading() function in the code below not able to access the 'opacity' property for the #myStyle CSS selector? The alert doesn't display anything, and I've verified that the 'opacity' property is 'false'. Thanks very much! <html> <head> <style type="text/css"> <!-- #myStyle { op...

favicon.ico cannot show on Internet explorer 7

I'm able to show the icon without problem on Firefox, but on Internet Explorer 7, the icon cannot be shown. Can someone please paste the code and try on your Internet Explorer 7? What missing did i do? <html> <head> <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="http://yourhtmlsource.com/favicon.ico"/&gt; </head> ...

PHP <<<EOB

I've been developing with PHP for some years now, and recently came across this code: <?php echo <<<EOB <html> <head> <title>My title</title> </head> ... EOB; ?> I've never seen this approach to print HTML, which seems to be pretty useful and less prone to some weird variable or double quote syntax error. I've...

which of the h1 tag code is correct?

I want to know which of the following code is correct... among all the three... <h1><span class="bold">realestate</h1> <h1>realestate</h1> <h1 class=bold>realestate</h1> Please let me know about that... ...

How can an iframe change its parent's URL fragment (without causing a refresh)?

I'm trying to get a child JavaScript application to update it's parent document. In essence, this is a very simple problem: a JavaScript program opens an iframe in it's own document. another JavaScript program is loaded into the iframe. the second program needs to change the fragment (anchor) in the original page. the first program, t...

Automated W3C Validation

I'd like to use MSBUILD to check the validity of both the rendered HTML and CSS of all pages in a site, and break the build on errors. Can anyone recommend a strategy to validate HTML and CSS in an automated build? Are there any tasks out there to do this now? ...

How do you center an image in a specified area, without resizing the image?

I want to center an image in an area, without resizing... I am using HTML. Example: I have an image <img src='img1.png' width='64' height='64'> - the image is actually 64x64. It displays perfectly. Now, I have another image <img src='img2.png' width='64' height='64'> however, the image is not as big as it should be, its 32x32 - what ...

jquery ajax parse response text

Ok this is really frusturating me because I've done this a hundred times before, and this time it isn't working. So I know I'm doing something wrong, I just can't figure it out. I am using the jQuery .get routine to load html from another file. I don't want to use .load() because it always replaces the children of the element I'm load...

Get the HTML contents of another frame on another domain

Hi I've read that you cannot read the HTML of another frame if that frame resides on another domain. Is there a way to do this in Javascript? I realise this restriction is for security purposes but my use is legitimate. Regards Peter ...

Maintaining HTML Content Positioning in ENewsletters

How do I get html content to stay in relative position and format from one browser/email to another? When developing e-newsletters, the format appears differently in one email server than in another (when testing to two of my emails). Example: when I open the email in my gmail, the padding around the images is where I want it, but when ...

What is the character limit on URL

What is the character limit for a URL, especially if the URL is formed from a GET method of a form. ...

Change Visual Studio 2008 HTML indentation style

Visual Studio 2008 insists on indenting HTML like this: <h1> title</h1> <h2> subtitle</h2> where for me, this is much nicer: <h1>title</h1> <h2>subtitle</h2> Is there any way to tell Visual Studio 2008 to use the later indentation style when doing auto-formating? ...