I would like the text in the value field of a text box to disappear when that text box gains focus, and then reappear in response to the eventual blur event - but only if the value is empty (that is, if the user hasn't entered anything after putting focus into the text box). So far, I have this:
this.each(function() {
obj = $(this...
I'm trying to construct a regular expression to look for empty html tags that may have embedded JSTL. I'm using Perl for my matching.
So far I can match any empty html tag that does not contain JSTL with the following?
/<\w+\b(?!:)[^<]*?>\s*<\/\w+/si
The \b(?!:) will avoid matching an opening JTSL tag but that doesn't address the wh...
Is there an extra for Python Markdown that supports Markdown inside HTML block elements, e.g. div, p
i.e. is there a way to convert this:
<div id="content">
[Google](http://www.google.com)
</div>
to
<div id="content">
<a href="http://www.google.com>Google</a>
</div>
using Python Markdown or a Python Markdown exten...
I want to define the style of Div based on a CSS file. The CSS code I have written is:
.body
{
text-align: center;
padding: 1px;
margin: 1px;
color: black;
background-color:lightgrey;
}
I want the background of each Div section to be light-grey. What's wrong with the above code?
Edited:
This is my HTML code. I ch...
I want to set the background color of Input Box to Cyan when it gets focus and to White when it looses focus. I want to define this in a CSS file. While writing the CSS code, I searched for the OnFocus and OnBlue events, but didn't find. Please let me know how to define these properties within this code block:
input.entryFormColor
{
}
...
Below is the code of a Form that I am creating. The CSS code that it links to, has also been added after this code. The problem is that it renders differently in Firefox and IE. How to stabilize it?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Cont...
We can use image maps to create hyperlinks...
but is it also possible to use an area segment of an image map to fill it up with another image.
If yes then how we do it? there is no img tag in tag!!
...
How to make HTML Input Box accept date strictly in format dd/MM/yyyy? Alternatively, any PHP code to pass entered date in this format to MySQL?
...
Some high traffic sites seem to have almost crazy sprited images with almost everything in one big image.
How much of a difference will this make for high traffic sites vs the difficulty in maintenance long term?
I know this may be a bit of a 'how long is a piece of string' question but I am interested to understand any experience of...
I have a entry form. Below it, I want to show a grid containing existing records. As the user clicks on a row of the grid, the values must get filled in the fields of the form above.
Is there any way to do this without refreshing the page?
...
I've got an HTML-only website (with a bit of inconsequential javascript). The static pages are generated from a photo-blogging program that I created. There are hundreds of pages and thousands of pictures.
I'm considering adding very basic security to the site (as a marginal impediment to someone who's casually attempting to access th...
After some search, I did not find a proper way to center a list of <li> into a fixed width div... any solution there ?
--
take a look at the page.. dont work !
...
Hi dudes, dudessessess,
I'm using sIFR to style headings and want to dynamically change the color of text (within the flash movie) onhover of parent element.
How would one do this? Any examples? I have never seen it done.
<ul class="tab">
<li id="tab2">
<a href="#two">
<span class="organisation sIFR-replaced" s...
I am trying to put together a page that has a header that spans accross the page.
the header contains menu items and looks something like this (ASCII rendering below)
<------ Fixed Width ----------> <----------- Variable Width (Depends on Screen Width) -->
-------------------------------------------------------------------------------...
Hi
i have the code below
<a id="treeSelector" style="cursor:pointer" >
<img src="../../graphics/tree.gif" align="left" style="padding-right:5px;"/>
<span>Root Page</span>
<img src="../../graphics/arrow_down.gif" align="absmiddle"/>
</a>
My Problem is that using the span inside when mouseover the cursor form pointer becom...
On my site I have registered a keypress event handler for the whole document.
$(document).keypress(myhandler);
And I handle the 'space' key to scroll a list.
Trouble is, there is an <input type='text' /> element, and I don't want 'space' keypress to scroll the list when it is entered in the input.
I couldn't find any information in ...
Let's say I have the following page:
<html>
<body>
<div id='foo' style='scroll:auto;height:400px'>
// content, content, content...
<div id='bar'></div>
// content, content, content...
</div>
</body>
</html>
What jQuery (or vanilla Javascript) can I use so that when the page loads, it jumps to #bar only within the div...
Hi, do you know where can i get the browser stylesheet? I try to explain me better. I need to know the default style properties that the browser applies to elements (not a specific browser). Is there a web site that talks about this? If not, have you got any idea of how to get those informations in javascript? I don't want to do an appli...
Something like below,which is complicated to figure out what it exactly means:
9.<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="945" height="102">
10.
11. <param name="movie" value="66.swf" />
12.
13. <param...
I'm in a dilemma, hoping you guys can help:
I've created a website for a friend of mines relative. However, after making the whole thing, the relative says she didn't understand that the design pictures I sent her where scale 1:1, so she wants the website "bigger". (basically the same thing as pressing ctrl+plus in Firefox)
Do I have t...