html

How to apply css to html so that it shows as the style property

I want to write an application that sends html formatted email. I have the css and html files as I want them. I'm trying to send the email with the embedded css using the style element like so: <style type="text/css"> h1 {border-width: 1; border: solid; text-align: center} </style> <h1>Title</h1> <p>Content of the email</p> It work...

making block level elements clickable links

I have the following design problem. I have a list of items and I want to make the whole of each of the first li to be a clickable link. I have tried adding a link in each li, making it a block level element and positioning it absolute, but that doesn't work because the parent and all li's are floated left for layout purposes. Any help w...

SO chat: how to make the sidebar not respond to scroll event?

I am using chat feature of chat.stackoverflow.com... It's really amazing! I am curious, when I scroll the window, the right side of the chat room(div id="sidebar") didn't respond to the scroll event at all, how that can be achieved? ...

Have iFrame fill screen minus a set pixel footer

Hi SO, How do you get an iframe to fill up the height of the screen minus a 33px footer space at the bottom? I need the scrollbars of the iframe (both up and down arrow) to show. And it must be without Javascript (so it can degrade pleasantly :). (The only thing I've found on SO is to use padding-top which doesn't seem to work in my ...

Hrefs vs JavaScript onclick (with regard to Unobtrusive JavaScript)

What is best practice with regard to using links/<a> tags with explicit hrefs to other pages in your site (i.e. href="/blah/blah/blah.html) vs having hrefs/divs/etc. that don't have an explicit href and have their onclick set within the document ready handler with JavaScript in say a main.js file. I'm not an expert when it comes to web ...

Choosing language

Choosing language I see http://github.com/ and OpenBSD.org got 2 examples how to. Github has a dropdown and openbsd.org just links. Which kind of UI for this use case could you recommend? I now take the parameter hl=el for instance for greek which switches i18n internals to greek or other language and present available languages like thi...

Why the "focusin" event handler isn't called ?

Why in the following code the focusin event handler isn't called ? HTML: <div id='wrapper'></div> <div id='button'>Click Here</div> <div id='output'></div> JS: $(function() { $('input').live('focusin', function() { $('#output').html('focusin'); // Why this not happens ? }); $('#button').click(function() { ...

Dynamically adding news to feed

Hi everyone, I'm running a Wordpress website and I have a <marquee> on the front page that runs the news. Is it possible to have it dynamically generate the news? What do I mean by that? Would it be possible to make it so that whenever a new post is made with a category of "News", it will automatically be fed into the <marquee> on the...

Google Maps is using javascript to render image or image files?

To use Google Maps API you fetch their api js file with: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=set_to_true_or_false"&gt; </script> Then I use javascript on my page to interact with this API. I wonder what is going on in the background that I don't see. Is this file using javascript to rend...

Jquery: how to capture the click event that is NOT in the region of <div>?

Hi, I am using the to implement a popup window using zIndex... things work well but I want to implement a function, that is when user click any region that is outside of the popup div, the div will be closed, how to do that? Bin ...

background image is not showing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .user-bg { backgro...

Why are the images included in cgi page not getting displayed in browser?

Hello everyone,I hope everyone's doin good. I am facing an issue regarding the images, i have a cgi page i.e Login.cgi, in tha html section i have included some images but some are getting displayed and some are not. Here's the code: #!C:\perl\bin\perl.exe use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use stri...

jQuery remove elements by condition

Hello. I have some tr elements in table: <table> <tr id="tr_level_1">...</tr> <tr id="tr_level_2">...</tr> <tr id="tr_level_3">...</tr> <tr id="tr_level_4">...</tr> <tr id="tr_level_5">...</tr> </table> In Javascript I have the next variable: var levels = 3; I want to delete all tr's where number in id is more than levels. And if l...

What is Quirks mode in IE8 Developer toolbar?

Hi guys, I am wondering what is Quirks mode in IE8 Developer toolbar? Why page rendering is different in Quirks mode than in IE8 standard mode? ...

jquery .attr() with callback?

On my set I use jquery to fadeout an image, change its source to something else, then fade back in. However, sometimes on slow connections, the image will fade back in before the source completely changes, so the old image will still appear for a brief second before the new one comes in. Is there a way to have a callback on attr so fadi...

iFrames bad or good?

Possible Duplicate: Are iframes considered 'bad practice'? Some say that iFrame is evil. But it seems that Facebook uses iFrames for the Facebook applications, and dumping FBML (Facebook markup language). I have never used iFrames before, but is it a good practice to use them if you want to "install" other web applications o...

HTML JavaScript onChange Handler is not called when updated programatically

I have found an odd anomoly with HTML text boxes and javascript that I have narrowed down to being a html/javascript peculiarity and I'm hoping someone can educate me on. I have downloaded and implemented a calendar plugin that creates a simple layer with a calendar and on selection, passes the selected date back to the text box. What ...

JQuery can't change focus on keydown

I'm trying to change the focus whenever a user presses tab on the last field. I want to set the focus on to another input field. I have the following javascript code: $("#input2").keydown( function() { if(event.which == 9) { $("#input1").focus(); } } ); And this is my trial html code: <div id="inputArea1"> ...

animation are not shown on jsp

In my Struts based application on eclipse, graphics animation on jsp page are shown in preview mode (both mozilla mode and IE) like I can click to button some text animation are display(like toggle effect) but on design mode button are not give any response. i am using jquery,css and js. ...

Best python/Django code generator?

Hello, very quick question. I am wondering if there are any software Django software that generates python coding automatically. If there are any, please let me know. ...