html

Image Switcher script conflicting with Add This script?

I added something called Varal Image Switcher to a client's web site several weeks ago. Clicking on the main image displays the next image. Here is the page: https://www.oldmanmountain.com/ Last week, I added this script from Add This: <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a href="ht...

HTML styling problem when using <sup> and <sub>

I've noticed that when trying to use superscript or subscript in the following way... <ul> <li><b>Mean Radius</b> 6,371.0 km</li> <li><b>Mean Circumference</b> 40,041.47 km</li> <li><b>Surface Area</b> 510,072,000 km<sup>2</sup></li> <li><b>Volume</b> 1.0832073 &times; 10<sup>12</sup> km<sup>3</sup></li> <li><b>Mass</b>...

Google Analytics when website "inactive"

I am not entirely finished with my website, and I am using apaches authentication to demand password and username when entering the site. I wonder, will this cause any problems with using and testing Google analytics? Should I first "open" and remove the authorization before using GA? Thanks ...

sticky footer woes

OK, I know this question has been posed in many cases and it seems the answers vary on a case by base basis. Here is my situation, I use blueprint grid system and the high level structure is as follows. So the footer sometimes sticks to the bottom, but when there isn't enough content in the content_container it doesn't. Also if the wi...

File drag&drop, detect when dropped outside ?

I'd like to modify the default behavior of my browser when drag&drop-ing a file in my webapp (html5). By default, if you drop a file outside a dropable box the browser tries to open it and quit the current page. On gmail, this is desactivated! Have you got an idea how this is done ? I was thinking about the onbeforeunload event but it ...

Read each line of HTML form submission Python.

Hi, I'm building a small web app with Python on GAE. I have an HTML form with a where users enter a list of items (one item per line). When the form is submitted I want to read each line and store separate entries in the datastore for each item (i.e. line). I want to do something similar to f.readline() for files, but on the form sub...

Align social buttons correctly

Hello, I am trying to put social buttons facebook and tweetmeme in our site. I liked the way it's done in yahoo sites. Please look Yahoo Link I looked at yahoo code, but the implementation style is very difficult to understand. It would be great if someone can help me in html/css coding. Thanks. Update This is the code I have so f...

Can't get a block of div tags to arrange themselves right.

I'm using this block of code (mostly copied from a PHP.net comment here - http://www.php.net/manual/en/function.imagecolorat.php) in order to read in a picture, scan it pixel by pixel and output the picture as a block of div tags in a table-like fashion. Here's what I came up with... <?php $img = imagecreatefrompng("image1.png"); $w...

In safari extensions, form onsubmit doesn't work!

Alright, now I am downright bewildered on what is happening. I am creating a safari extension called unibar(which is a separate toolbar extension, not a toolbar item), a clone of Chrome's address bar. what I want so far is to at least create a regular address bar, and build from there. Here is my bar.html file, which is connected to t...

JavaScript/jQuery: Monitor change to element?

Is there any way (aside from creating a new event) that I can tell when a particular CSS class has been added to an element? ...

[Q] How do I intergrate a html document into the code

I am currently working on a new app and this is my first ever app I have attemped to make with the android os. I am using eclipse 3.6 and using android 1.5 version as the base to make the app as compatible as I can with all android phones. I am a newbie to java and I read a few tutorials which helped me get the app up and working but I...

How can I do sort an HTML table using a button?

Actually I have a table in which I have fetched the records from the database, and am intending to do the sorting for the records. "My intention is to have a small button near the headers of the table and whenever I click that button then the records should get sorted". I am providing a piece of Perl code here which can make the things...

Capture first frame of an embedded video

Hi, I want to capture the first frame of an embedded video as an image without using any server side scripting. Probably with javascript, is it possible? ...

Attempting to optimize a pixel reading and outputing function.

$img = imagecreatefrompng("img/".$image); $w = imagesx($img); $h = imagesy($img); $pixelcount = 0; echo "<div id='container' style='width: {$w}px; height: {$h}px;'>\r\n"; for($y=0;$y<$h;$y++) { for($x=0;$x<$w;$x++) { $rgb = imagecolorat($img, $x, $y); $r = ($rgb >> 16) & 0x...

Webform generator ?

Hello fellows, just wondering is there any free tool which can aid in making the GUI/interface layout of asp.net/html forms ? My forms mostly end up in being less user friendly and not good looking at all. ...

Hiding a text box in a form using javascript

What is the correct way to hide an input text box? The following appears to work to work in all browsers except Internet Explorer. I am testing on IE8. var field = document.getElementsByTagName("input")[0]; field.type = 'hidden'; For the record the following does not work: var field = document.getElementsByTagName("input")[0]; field....

how to fix opacity on IE6

how to fix opacity on IE6 This code does not work on IE6 ! filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; And this code ! $('#description').animate({opacity: 0.0}, 1000); ...

Visual Studio Report Designer shows only HTML

Hello, I built a report in Visual Studio 2008. There was a problem with it (an error occurred while trying to view the report) and since then, the report designer shows just HTML, <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text...

After I've validated if some $_POST variables are correct, I want my window to close. How do I do this with JQuery?

<?php if($_POST["some_variable"]){ echo "this window should be closing now"; } ?> How would I call the JQuery code to close the window, and what would the function be? The window was opened with a code resembling the following... $('.new_window').each(function(){ $(this).click(function(){ var center ...

How do I a embed a variable css style in a VB.NET xml string literal?

I would like to add a variable data to a string literal WITHIN the HTML tag Dim locationOfImage as string = "http://blahblah......" Dim xmlString = _ <div style="background:url(" <%= locationOfImage %> ")"> <h3>Some text</h3> </div> The above does not work, I can't quickly determine how to d...