html

How to I get the value of a radio button with javascript

I need to obtain the value of a radio button using javascript I have a radio group called selection <input type="radio" name="selection" id="selection" value="allClients" checked="checked" />All Clients<br /> <input type="radio" name="selection" id="selection1" value="dateRange" />Date Range between I pass the value to an...

How do I add a hyperlink to a background image?

I'd like to add a hyperlink to this background image. Should I create a new class within the stylesheet? (When I attempted to call the new class, the image disappeared). body{ background-image:url('http://thehypebr.com/wp-content/uploads/2010/09/boundless-sem-branco-2.jpg'); background-repeat:no-repeat; background-attachment:fixed...

What is causing whitespace on the top & bottom?

After I added a new div class for my background image, the top, bottom, and page menus became white. style.css #boundless{ background-image:url('http://thehypebr.com/wp-content/uploads/2010/09/boundless-sem-branco-2.jpg'); background-repeat:no-repeat; background-attachment:fixed; line-height:20px; font-size:14px; font-famil...

Change a value of a hidden field in the markup?

Is there a way to change a value of a hidden field in the markup (with jquery or js) so I could use that new value once I'm out of the script (i.e. in a different script that would be triggered later)? Lets say : <form> ... <input type="hidden" name="prev_address" id="prev_address" value="no"> <input type="hidden" name="prev_job" ...

JQuery Navigation Table. Showing and hiding every other row?

I have a table layout that I am using as a navigation bar. It's like a tree-menu where some rows are headers for the ones below it. It goes a little like this (some tags removed for readability): <table id = "QLM"> <tbody> <tr id = "QLM0"> <tr style = "display: table-row"> <tr id = "QLM2"> <tr style = "display: table-row"> <tr id = "QL...

How to disable text selection with css or js?

Hi every body! I am making a html/css/jquery gallery, with serveral pages. I indeed have a "next" button, which is a simple link with a jquery click listener. The problem is that if the user click the button serveral times, the text of the button is selected, and then the full line of text. In my really darky design, that is really ...

a href link on img

Hi I have the following code to have few links on top of img. It works well in FF but not in IE. It seems IE is not clickable if you put link on top of img <div style="z-index:-6755;"><img alt="October Offer" src="images/offers/october-offer.jpg" /></div> <a href="javascript:void(0);" onclick="window.parent.SqueezeBox.close();" style="t...

How to override HTML image using CSS

Hi, I have my current code: #content img[src="/img/test.gif"] { background-image:url(dark-img.png) !important;} From my understanding !important; overrides existing values? Why isnt this overriding the current HTML image in place there? The background shows up, behind the HTML image. I want it infront of the HTML image, is this pos...

Drag scrolling on web

how to make scrolling like this: http://na.blackberry.com/eng/devices/blackberrypearl.jsp ...

Is it possible to filter video embed with htmlspecialchars()

I am allowing users to embed videos on their page, but just in case I want to filter the output. To present the video I retrieve the embed statement from the database but when it is filtered, it is presented in raw code. Is there a video friendly way to filter something like this or does anyone have any suggestions on a different way to ...

Double Background image top and bottom

Hello Stack overflow, Need help on this anyone? The problem on this one is if you will zoom-out the browser the grass & tower is resizing. because of the position:fixed top:270px; This is for the grass & tower will be on the right location on the page. If I will put a top:0; its good because its stick on the top but the problem is the cl...

Display selected option after form post

Hello I have a html select which has an onchange event. And whenever a user selects an option, data related to that option would be retreived from the database. But the select is set to its original or default option as a post would occur. How do I set the select to the user selected option?? I am using cakePHP for this, but I am pretty...

list of restricted words

I believe we can share our compilation blacklisted keywords for use in forum or comment system to filter out unwanted spam and words like s*x, f**k. I hope you can share all your list here. ...

Problem while Merging Image with Button

Guys check this out : http://www.codetoad.com/html/buttons/image_submit_button.asp You'll notice then when you click the button it is taking you to http://www.codetoad.com/html/buttons/image_submit_button.asp?x=118&amp;y=22 How do i remove this "x=118&y=22" at the end.Because my form is a get form and because of this its altering my ...

how use button in internet explorer?

on my source i use <a href='pag.php'><input type='button' value='Next'/></a> in firefox and crome when i click on the button i'm redirected to pag.php but in ie it don't work. how can i do? ...

Any software like blend for HTML5 canvas animation?

Is there any software available like blend, for working with HTML5. Especially, to do animation related stuffs. ...

IE7 / IE8 Compatibility View: Element on page shifts to correct position when ANY css changes

Hi all, I have an extremely strange problem in IE that I can't seem to track down. I have two boxes, both floated left, with a margin-left on the right box to give some spacing between the two. In Firefox (of course), it all displays correctly, but in IE when the page is first loaded, the boxes have no separation (no margin). Here's th...

How do I auto-scroll to a specific table row?

I have an html page with a header, a table containing 100 items and a footer. When there is a search, I highlight the row containing the data. However, if the highlighted row is row 75, the user has to scroll down to find it. How can I automatically scroll to that row? I did see scrollTO() but see it only takes axis points. Any ...

Background command not displaying/showing from the stylesheet when using date picker js

Hi there, I'm new to this site having stumbled across it recently (and am loving it!) and was wondering whether someone can help me - I'm using Kelvin Luck's fantastic date picker and for some reason a background image is not behaving properly... Here's the code straight from my CSS sheet: a.dp-choose-date { background: url (../ca...

CSS & HTML: I'm having trouble aligning these divs...

Each of them are off by a couple pixels, The corners should all line up so that it doesn't look like a bad copy / paste job in paint. Code: http://jsfiddle.net/Lbgp3/ ...