html

How can I position a label inside its textfield?

I have many textfields that show instruction text within the textbox (how the default value would look). On focus the color of the text becomes lighter, but doesn't go away until text is entered. When text is erased, the label returns. It's pretty slick. A default value doesn't cut it, because these go away onfocus. I have it working, b...

SCHEME: how to input html and output it as html source?

Hi, I am trying to write a simple web app in scheme and I am using Drscheme for the job. I am wondering if there is a way to input html code into a form which then outputs it in html format (into source)? Is there a library that does the job? Everytime I input something it turns out as a string, I need it to be read as html. Can someone ...

Getting IP address.

How to get and display the current viewer IP address in a text box? ...

HTML\CSS Coupon Script

Does anyone know how to create a coupon (printable is even better) with HTML & CSS? Forgive the horribly simple question, I don't do much of any web development :) Thanks in advance. EDIT: EDIT: Seth posted his answer again, which I accepted, thus I removed the answer from here (it was just a copy of his original deleted post). ...

Safari does not work with forms on .htaccess site

I can't get Safari to submit forms to a page that is protected by .htaccess. I have reduced my test page to: <html> <body> <?php if(isset($_REQUEST["name"])) echo "<p>You entered: ", $_REQUEST["name"], "</p>"; ?> <form method='post' action='index.php'> <p><input type='text' NAME='name'> <input type='submit' name='send'...

Regex replace string but not inside html tag

I want to replace a string in HTML page using JavaScript but ignore it, if it is in an HTML tag, for example: <a href="google.com">visit google search engine</a> you can search on google tatatata... I want to replace google by <b>google</b>, but not here: <a href="google.com">visit google search engine</a> you can search on <b>googl...

Internet Explorer table 1 pixel spacing problem

I've found a strange problem with Internet Explorer related to table spacing and cannot find a way to work around it. An empty table results in a single pixel white space with Internet Explorer (6 and 7, 8 not yet tested), while all other browsers ignore the empty table. Here's a picture of the problem: And here is the minimum HTML co...

different css formatting on different <p> tags

i am creating a website where i read in html data from other websites. The problem is that the source that i am reading all has <p> tags in it, but i actually want to format them differently is there a way to have some <p> tags using one formatting and some <p> tags do other formatting in the same web page? ...

Select with Indented as well as formatted Items in PHP

I have a need to show a select box which will display all categories and subcategories in one go. I want to show All Categories left most & bold while all sub categories will come under respective Categories but will be indented and Italized. How can we create such a Select List in PHP? I have something like this in Magento Ecommerce ...

display div on onload with tha background blur

Hi Friends i develop a project in that i need to get the input the userid and pwd before enter the other information.For that i use span tag for login and disable the background fields[i paste the background contents in a div] .But i am able to enter the value in background field. And also when i restore the window the span ...

jQuery Change event on an <input> element - any way to retain previous value?

I've been searching around this morning and I'm not finding any simple solutions... basically, I want to capture a change in an input element, but also know the previous value. Here's a change event and an input element in its simplest form. Clearly, I can get the new value with $(elem).val(), but is there a sneaky method I'm missing f...

display text after Html table on same line

<table> <tr> <td>Yes <input type="radio" value="yes" /></td> </tr> <tr> <td>No <input type="radio" value="no" /></td> </tr> </table> Some text ...

Update two same value in html with one ajax response

I have two < span> -tags with the same id in different places om my page. I know it's wrong to use the same ID twice. It's no problem for me to change the id's to class. HTML: <span id="tumme">4</span> ... <span id="tumme">4</span> .... is updated by AJAX: document.getElementById(tumme).innerHTML = xmlHttp.responseText; but on...

Is there a JQuery plugin to represent a United Stated Dollar input field?

I need to represent a U.S. Dollar amount input field. I'd like to have some AJAX feedback to format it with a "$" sign and keep two decimal places (and also disallow letters and non digits.) Anyone know of an existing project or have a few quick tips to roll my own? ...

appostrophes coming in as �

i am reading in html from a file and displaying it on a web page: when i look at in the source i see: The Club’s summer junior programs but it shows up as: The Club�s summer junior program do you know whats happening here and why the � is shwowing up? ...

css :after will not work

i have a css prop like stated #menu li#selected { padding: 0 10px; margin:0; background:url(nav-tab-left.gif) bottom left no-repeat #90288d; height: 35px; } after the li i need to display the second part of the image nav-tab-right.gif i try #menu li#selected:after { background:url(nav-tab-right.gif) bottom right no-repeat; } but t...

invalid a href URL's

For example, I have a URL, that someone entered into a specific CMS form field, to display on the website: http://seneca.sunyconnect.suny.edu:4730/F/?request=79396&amp;func=find-b&amp;find_code=sys&amp;local_base=her01pub and it outputs the following html: <a href="http://seneca.sunyconnect.suny.edu:4730/F/?request=79396&amp;func=find-...

How can I change my font color with html?

I'm making a web page where I want the color of the font to be red in a paragraph but I'm not sure how to do this. I was using FrontPage for building web pages before so this HTML stuff is really new to me. What is the best way to do this? ...

Use name in other elemt than div or span, but still possible to show img

<span name="tumme"><img ... is not valid because "name" is not valid in "span". But I need to use name="tumme" and I need to be able to use text and img inside the tag. So what tag can I use together with "name" and on the same time follow w3c? ...

Change the appearance of a disabled link

Is it possible to change the appearance of an html link when it's disabled? For example using something like: a.disabled { color:#050; } Testing The example above does not seem to work with IE but works for Firefox, on IE it remains gray even when I set the colour in the style. If I remove the disabled="disabled" however it w...