html

Setting the value of a hidden input

The idea: I'm setting the value of an input with type="hidden" via regular Javascript or jQuery. The issue: neither jQuery nor document.getElementById will find the hidden input, even though I'm absolutely sure the selector is correct and there are no conflicting elements. The code: I can't really post much of it, because it's full of ...

White space at bottom of anchor tag

I have an tag surrounding an image. I have a border set on the div that the tag is in. I have both margin and padding set to 0 but for some reason my tag is still about 3 pixels taller than my image. This leaves a bit of space between the image and the border, which destroys the look that I want to accomplish. What am I doing wrong? ...

Apple like mouse hover-zoom cursor

Hi, Apple has a pretty cool feature when hovering over a large image here: http://www.apple.com/aperture/what-is.html It zooms out a small magnifier glass icon which moves with the cursor while over a zoomable image. How can I do that, preferably with JQuery? Can anyone help me please? THX ...

Firefox does not support JavaScript (form validation) but IE fully support.

Hi everyone! I developed a user input form in php used (php, html, javascript…). I wrote validate functions in JavaScript. The form is working fine in internet explorer and validate all the fields, but when I open in Firefox then, the form and fields not validate like (drop down menu field) not validate, but why? I am new in web developm...

display different image based on state of link

I have a link that a user selects, to display a paragraph, once they select it, I want it to display a different image, initially the image will be a plus (+) sign, to visually communicate that it can be clicked to slide down the content to be seen, and once it is clicked, I want it to change to a minus (-) sign, so they can click and it...

How to scroll to selected item in a select box

In my application when I person selects an item at the bottom of the select box the area is reloaded with another select box. My problem is when the select box is loaded it scrolls to the top instead of scrolling to the selected item observe here http://www.jaunna.com/question/Add UserID: top Pass: t ...

HTML CSS take as much height as possible

Hello, I have quite an interesting situation. I have a table with two columns. In The left one, I have a lot of text, it is HUGE. In the right column, I have a marquee with a very long list, longer still than the content in the left column, but, for it is a marquee, the height is quite little. Is it possible to set the marquees height t...

Firefox Problem

Hello, I have a problem with Firefox I have a drop down menu at the top of my website this is the code for the CSS #zone-bar { background:#E5E5E5; min-height:30px; z-index:10; padding:5px 10px 0; } #zone-bar ul li { float:left; height:18px; margin-right:10px; position:relative; z-index:10; padding:5px 5px 0; } #zone-bar ul li:hover { ba...

Firefox does not support JavaScript (form validation) but IE fully support.

this is my code: function validateFormOnSubmit2(theForm) { var reason = ""; reason += validateState(theForm.state); if (reason != "") { alert("State field need correction:\n" + reason); return false; } return true; } function validateState(fld) { var error = ""; if (fld.value == "") { error = ...

jquery tooltip showing a hidden div element?

I am trying to have tooltip for my personal website http://www.stacked.in. when I move the mouse on the link, I want to have tooltip displayed. Tooltip display content is already available inside the html page as a div element, but it is hidden. I want the tool-tip to be displayed only when I move the mouse over the link. I use jquery an...

How to force certain elements to only show when fully loaded on a webpage?

Lets take a static html page as a scenario, lets say you have a DIV element that you wish to only render fully within a users browser AFTER all its content has already been fully loaded instead of having bits and pieces of it appear. Any ideas appreciated! thanks ...

Making resizable image backgrounds with HTML, CSS, and Javascript

I'm trying to create an image object or canvas object that will resize based on the window dimensions, but keep the aspect ratio. Is this possible? I know that with canvas, you can maintain bicubic scaling, but is it possible to have the image scale on the window resize while maintaining the aspect ratio? ...

How to make YUI DataTable to be 100% width

My code for creating the data table looks like this: myDataTable = new YAHOO.widget.ScrollingDataTable( "containerDiv", myColumnDefs, myDataSource, {height:"100px",width:"100%"} ); That code produces a table that looks something like this...

HTML layout question?

I was just wondering I'm trying to display all a members friend requests in their own form for example, three friend requests will be displayed in three different forms or 20 friend requests will be displayed in 20 different forms and so on. The reason for this is because I want each friend request to have its own Add Friend or Deny Frie...

Selecting Video player in HTML

Hi , I have a .avi file .I want to play it using a vlc media player or quicktime in a webpage(HTML).Any idea how to do this? By default it opens up in windows media player and that is not able to open the file ...

is there anyway to force a link to open up in IE, even if not the default browser

we have a website with links to a sharepoint. These features in sharepoint only work in IE so i dont want to open up firefox or chrome if that is the default browser. Is there anyway to have a <a href= "">My Link</a> force open up in internet explorer ? ...

Fill a table horiziantally

say i have a list e.g. apple car bin How to i get it to fill horizonatlly in a table rather than vertically i.e so it looks like this in a table: apple car bin The code im using just repeats each entry of the list for the entire row, code below: <body> <div metal:fill-slot="main"> <h1>List of Species in the Database</h...

Question about HTML elements and custom attributes

Possible Duplicate: Custom attributes - Yay or nay? Is it appropriate to create custom attributes for HTML elements as so: <input type='text' value='name' custom_attribute='value'> This seems a little hacky and I'm not sure if it is supported largely or exactly how it would be accessed via DOM. ...

Making a Multiple Select Control Sortable

Does anyone know how to make a multiple select (see below HTML) sortable? Using either jQuery or Ext JS? By sortable, I mean that I can drag an item (an option) up or down to reposition it in the select control. <select id="testing" multiple=multiple> <option>First Option</option> <option>Second Option</option> <option>Thi...

Making a custom phpBMS form act like a normal HTML form

I am using a CMS like system, which defines custom form fields. To make a form, all you can really do is add certain form fields, and that is it. The only action possible within the CMS form builder is to save the form to the database. Here is an example of such a form. I want to basically have one field, the inputSmartSearch field, w...