html

When to use a lightbox effect?

We've all seen the popular lightbox effects on the web (e.g. JQuery Lightbox and Shadowbox). Yesterday I got into a discussion with a client who is completely enamored with lightboxes and wants to use them every time a form is submitted including: Login forms - click the login button and the lightbox appears with the user name and pass...

how to get value from any HTML tag in php variable

wahta i m asking is... i have some value in p tag eg. Hello now i want that is there any way to get the value inside in a php variable( eg. $getIT)( session variable or normal varaibale or global variable) so that when i do echo $getIT then it print Hello; ...

How to detect when mouse is over HTML layer over Flash movie?

I have a Flash movie that is embedded in an HTML page that has a DIV in a layer over the top of the movie. The Flash movie scrolls based on the mouse position over the movie. The client wants the scrolling to stop when the mouse is over the DIV. I've tried using the mouseLeave event, but that is not triggered by the DIV. Is there a wa...

can a <tfoot> go at the bottom of a table?

I'd like to use a <tfoot> tag in a table to be semantically correct, but it keeps showing up at the the top of my table. Is there a way to tell it to display at the bottom? ...

submitting dynamically created form with javascript

Hello all, I'm attempting to submit a form I've created out of an html string, like this: var upload_form = "`<form action=\"uploadSong.php\" method=\"POST\" class=\"upload_form\" enctype = \"multipart/form-data\" target=\"upload_form\">`"; upload_form += "<input type=\"hidden\" name=\"showId\" value=\"" + showId ...

How to Mask Extension in URL

Is there a way to mask the URL extensions for pages on my website with PHP? Example: http://home/subfolder instead of http://home.subfolder.php ...

How do I edit form and script to upload two files instead of one -file to server, file name to mysql

The form and PHP code included here has been used to successfully upload a file name to the database and the file itself to a folder on the server. I need to edit the form and the code to allow for simultaneous upload of two files instead of just one. The filenames will go to the database while the files themselves will go to a folder ...

creating a webpage for iphone

i am creating a web page for iphone, i need the page to display efficiently in the iphone as well as on pc's. I'm coding in xhtml and uses support of JavaScript and css. The problem is that, i'm getting the correct view in the pc's but too small in the phone.how to adjust the size of the page. I am checking the user agent and loading a s...

how can we use and control Gradient

i use this as a background bar ... repeated of course http://www.freeimagehosting.net/uploads/3c2f75b680.gif and i want to replace that with simple CSS Gradient color without image ...so i searched all over the internet and i found this: filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#ffffff' ,startColorstr='#000000' ...

Creating a webpage for mobile browsers

I'm creating a website for mobile users as well as for pc users. I want this website to be viewed properly on both these end users. I'm now basically looking into the part of mobile users. When i load the page on my mobile, it seems to be a way too bit smaller. I need to reduce the whole body size of the page or its resolution to fit the...

replace keyword within html string.

I am looking for a way to replace keywords within a html string with a variable. At the moment i am using the following example. returnString = Replace(message, "[CustomerName]", customerName, CompareMethod.Text) The above will work fine if the html block is spread fully across the keyword. eg. <b>[CustomerName]</b> However if the...

div css height adjusting

i have the following div in my website: <!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"&gt; <head> <title></title> <style type="text/css"> .popup { float: left; position: fix...

Basic drop-down menu (jQuery)

I'm using this currently: $(document).ready(function () { $('ul#nav > li').hover(function () { $('ul:first', this).show(); }, function () { $('ul:first', this).hide(); }); $('ul#nav li li').hover(function () { $('ul:first', this).each(function () { $(this).css('top', $(this).parent...

Moving an inteface from excel to asp.net

I have an Excel spreadsheet that is used to collect data from a user, and is used to populate our database. I need to produce an asp.net page that can be used to collect this data instead. I'm having some difficulty coming up with the best way to get this data, the current spreadsheet is used to allow the user to define a number of pack...

Problem getting items in adjacent table cells to align vertically

I'm having a big of a styling problem with some table rows. As per this screenshot: The blue and red circles are cells in a table row (whose height is 50px). Both are styled with "vertical-align:top" . The phone number data (in the red circle) is actually a pipe-delimited string where I've substituted HTML breaks for the pipes. In...

html text box displaying hint when in focus

How do I create a text box that displays hint on the right when in focus? Example : http://www.airbnb.com/rooms/new (click on the address text box) ...

Unexpected box model behaviour in all modern browsers for <table>

The following is a reference HTML document that illustrates my issue: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Box model test</title> <style type="text/css"> ...

Build, syntax-check, parse and evaluate a query.

Hi, I am building a query in a textarea with different conditions selected from the html controls. Also users are open to do modification to it. Client side: For the below list of condition: a(1, 3) > 20 b(4, 5) < 90 c(3, 0) = 80 I form a query: a(1, 3) > 20 and b(4, 5) < 90 or c(3, 0) = 80 On the server side this has to be parse...

3 divs and middle's width

Hi guys, I want to make 3 divs in one line. Left, middle, right. Left and middle must have fixed size (300 px for example) and middle have to resize dynamically (in percents). Here is my css: #content { width: 100%; height: 435px; } #content_left { float: left; width: 300px; height: 345px; border: 1px solid red...

avoid ie contentEditable element to create paragraphs on Enter key

On InternetExplorer, a contentEditable DIV creates a new paragraph (<p></p>) each time you press Enter whereas Firefox creates a <br/> tag. Is it possible to force IE to insert a <br/> instead of a new paragraph ? ...