html

Jquery Image Slider with a slide down

Right now it seems to work fine except I keep running into 2 errors. When .desc slides down and it goes to the next image the old .desc from image goes on top of .desc of image two. Second error is if you hove over it and then take your mouse off of it and hover over it again the .desc goes crazy and goes up and down a few times. I cant ...

Organizing Div's, css box model

So I'm putting a few boxes in my footer and right off the bat when I use margins to move them around they are moving the whole footer around as well. Anyone know what I am doing wrong? The site: http://cowgirlsbaking.com/ ---php--- <?php wp_footer() ?> <div id="pinkpoint"> </div> <div id="footnav"> <div id="footernavlinks> </div> ...

What does a dangerous query string look like?

Hi I want to see if my encoding is working however the example I made just reverts back to non encoded after it goes back to the page. <a href="http://search.msn.com/results.aspx%3fq%3dIamBad"&gt;Click Here!</a> Turns back into <a href="http://search.msn.com/results.aspx?q=IamBad"&gt;Click Here!</a> Edit UrlEncode Untrusted in...

Python Apache local/internal server error?

I am creating HTML form and using Python to code it. I have installed Apache version2.2 and Python version 2.6. Here is the code: #!C:\Python26\Python.exe -u #import cgi modules import cgi #create instances of field storage form = cgi.FieldStorage() #get data from the fields first_name = form.getvalue('first_name') last_name = form....

html submit without submit button or JavaScript

Currently I have a simple form with a plus and minus on it and a value in the middle. I am trying to create a href link under the plus and under the minus to call self but to either indicate which link was used (either plus or minus) or to pass the value after being incremented or decremented. I do not want to use JavaScript/client side...

embed a font in javascript

Is there a way to embed a font in the html / javascript code? (everything in 1 html file) ...

How do I execute an INSERT using SqlCommand?

I have another class that creates the connection (see refined class half way down page) and I believe it connects or at lest I do not hit any of the exceptions in run time. I would now like to insert data into my database but nothing is updated. I am trying to follow this example but it is for reading. I did run "querystring" on the...

How to get this regular expression to match </span>

This is the sort of HTML string I will be performing matches on: <span class="q1">+12 Spell Power and +10 Hit Rating</span> I want to get +12 Spell Power and +10 Hit Rating out of the above HTML. This is the code I wrote: preg_match('/<span class="q1">(.*)<\/span>/', $gem, $match); But due to <\/span> it's escaping the / in </span>...

Is Google font api supported in all current and old browsers?

Is Google font api supported in all current and old browsers? and will it work if js is disabled.? IE6 IE7 IE8 Firefox 3.0+ Safari Chrome iPhone/iPad Blackberry ...

Python CGI-based frameworks for web development and templates?

What are my choices for frameworks for doing Python web development and having a nice language for writing templates for CSS/HTML? A key goal for me is not to have to run a server or install many extra dependencies -- I'd like something that works just by using CGI and hopefully does not force me to do any fancy reconfiguration of Apach...

How to set HTML value attribute (with spaces) using PHP

When I use PHP to set the value of a HTML form input element, it works fine provided I don't have any spaces in the data. Here's the code: <input type="text" name="username" <?php echo (isset($_POST['username'])) ? "value = ".$_POST["username"] : "value = \"\""; ?> /> If I enter "Jonathan" as the username, it is repeated back to me a...

Allow User to Upload Images and Add Title/Short Description

Hi, Unsure how to do this but I want to create a DIV on my page that represents a section called Promotions. 1) Within this DIV, I want to create three rounded boxes by where the user can upload/change the images when they want, to display the top 3 promotional items How can I approach this? 2) Alongside/below these images, I want th...

force webpage cursor

According to w3schools The cursor property specifies the type of cursor to be displayed when pointing on an element. However I found an elements cursor is not shown under certain browsers when working with a rich text editor, which uses an iframe. Firefox/Chrome/Safari/Konqueror work but IE/Opera do not. Is there a way to r...

Problem with printing javascript and html with php

Hi, I have this print statement: print "<a href='#' onClick='document.getElementById(\"myheader\").innerHTML=\"\"'".$rowQuery['keyword']."&nbsp; ·&nbsp;</a>"; Unfortunately, it prints: <a ·&nbsp;="" keyword&nbsp;="" onclick="document.getElementById("myheader").innerHTML=""" href="#"/> I have no idea why, any help would be useful....

Select tag inside hyperlink problem

Hello, I have simplified my page and here what I have: <html> <head> <meta http-equiv="content-type" content="text/plain; charset=utf-8" /> <title>Title</title> <style> a { text-decoration: none; } div select { margin-top: 20px; display: block; } </style> <script type="text/javascript" src="http:...

Change bg color when radio btn is selected.

I need to change the bg color of a div containing a radio button when the user slects the button. I am using jquery - so its seems like there should be some simple way to accomplish this. I have my html setup something like this: <div class="sales_box"> <table> <tr> <td class="radio_cell"><input type="radio"></td> </tr> </table> </div>...

HTML usability question - (double) clicking to select text

Hi As you well know, double clicking on a word in a browser selects it, triple clicking selects the entire paragraph. I'm tweaking a wiki, where signatures for anonymous users are created automatically and they look like: --- // <ip.ad.dr.ess> // The "---" generates a , // is for italic text and generates <em></em>. This is how it...

Change bg on radio deselect

This is just an add on to my last question. Once I deselect the radio button I need to return the background color to its original state. So the solution we came up with is: $(document).ready(function(){ $('input:radio').change(function(){ $(this).closest('div').toggleClass('highlight'); }); }); Now I need to remove th...

Absolute positioning of a GWT TextArea in IE?

TextArea textarea1 = TextArea.wrap(DOM.getElementById("t")); In onModuleLoad() I wrote 2 lines given below: textAreaStyle = "position:absolute;top:0px;"; textarea1.getElement().setAttribute("style", textAreaStyle); In Firefox and Chrome, the textarea is placed in absolute position and 0px from top, but in IE the textarea remains a...

Resolution problem with drop down menu

http://www.israelnumber.com/new2/ the drop down menu on small resolution is hidden and a scroll bar appears , how can i move the menu to hidden menu to the left? tnx ...