html

CSS/Javascript How do I make this background-position movie in Firefox like it does in IE7+?

<script language="javascript" > var speed=25; //speed var num=0; var photos = document.getElementById('head_image'); function scrollBG() { num++; photos.style.backgroundPosition="0"+num; } setInterval('scrollBG()',speed); </script> This is the site in question: www.theorymarine.com ...

HTML Table displays random cell values outside of table.

I am using a string builder to set up an html table row by row so that it can be emailed. I currently gather my information from the database using a data reader and while dataReader.read, I use stringbuilder.Append to add each cell value to the table. The issue is that after about 200 rows, the html breaks and displays a cell value abo...

Code displayed in one line after FTP upload/download

Hello, When I upload/download some HTML/CSS/… file to FTP server, sometimes something puts every line of code in one line making it completeply unreadable. That something happens every now and then and I’m still looking for an explanation for this behaviour. What could cause this? ...

Object doesn't support this property or method validation.js line 124

hey , I know that a lot of people ask this before , am using really easy field validation with prototype , its very nice script , but the problem that i use this thing in an ajax form . i know that your answer will be to extend the elements in my js code , the problem is not in the validation.js code itself but in another function tha...

Vertical center image in div differences in Safari and FireFox

I currently am comparing this in Safari and Firefox. A small image inside a div, which I need to center vertically. Here is a simple test case that I have distilled down: http://dl.getdropbox.com/u/340087/Drops/09.23.09/so-03f73322-164033.html This one is probably even more simple: http://dl.getdropbox.com/u/340087/drops/09.23.09/align...

Why does my embedded youtube video work in FF, but not IE?

Hello, I'm using the following code... <object width="425" height="344"><param name="movie" value="**URL**"></param><param name="allowFullScreen" value="true"></param><embed src="**URL**" type="application/xshockwave- flash" allowfullscreen="true" width="425" height="344"></embed></object> to display a youtube video. It works in Fire...

XML/XSL to HTML table

Can someone help me get the value of the columndefinition/column/cssclass from within my rows loop? So, in my xsl, I want to pull in the cssclass for the same column position during my "rows" forloop, and put it into my <td class="PullItFromColumnDefition"> Hopefully this makes sense. Can anyone help me figure this out? Thanks. My XM...

Tumblr theme... trying to find the type (text, picture, etc) of the first post.

So I want various aspects of my theme to change depending on the most recent post. Any idea how I could do it? I would prefer it to be by using on of the tumblr custom {html tag} things, rather than javascript or whatever. Don't know if that's even allowed on tumblr either. Theme Documents are here: http://www.tumblr.com/docs/custom_th...

How to display a string, based on number in a form with JavaScript

I have the user entering a post-number in a form-field, and then I want to display the town with that post-number. I have the server-side function set up, it takes a variable from the URL and returns a plain string. As I see it, I need to get the variable from the form-field afterthe user has written it and the focus has left the form-...

Two encoding in one HTML document

Hi all, My problem is this: I am copying a set of HTMLs from a machine to other one, and I am adding more information into the target HTMLs as a element. The problem I have is that the source documents are encoded in a lot of different encodings [UTF8, 8859-1, GB1232, etc.] and the meta information is stored as UTF-8, so, when I "dumm...

How to display part of a string underlined to an asp.net Label control?

Hi, I have an asp Label control used for displaying error messages to the user. My client would like certain words in these messages to be underlined. How would this be accomplished? Thank you, James ...

html: users adding extra forms

I want the user to be able to add extra forms if they are needed. How do I do that? ...

Has anyone come accross a browser where a custom attribute didn't work?

Hi, The web application im working on has a few custom attributes on HTML elements to store data that is output. Only happens here and there and so far I haven't noticed anything wrong in how the page is rendered on IE7, IE8, FF 3.5 and Chrome 3. I'd like to assume everything will be ok but just wanted to check if anyone else has had ...

CSS border not working in IE6

Hi all, I have a css class (given below). The border element is working fine in firefox, it creates a 6px white border around the image. But in IE(6) it is not creating any border ie only displays the image. Pls help me out I need to figure it out quickly. .pimage2 { background:url(../images/img2.gif) no-repeat; width: 469px; ...

How can I open a new tab or window when a link is clicked?

I have same ancors/hyperlink in my html file. These point to a new website outside my site. So I want that when the user clicks the link it should open a new tab or window. My website page should not be closed. How can it be done? ...

how to solve zindex issue with flash

Hi, In a webpage I need to show a div layer over the flash banner which is not using wmode=transparent setting. How to solve it? ...

How to dynamically add em tag before img?

Hi, I want to put em tag before IMG tag dynamically , the image class is .photo. <img class="photo" src="image.jpg" /> I want to convert this to <em></em><img class="photo" src="image.jpg" /> using jQuery, I am using the append but its add the em in the img tag, thanks. ...

set Image and lable text in javascript

Hello everyone.. In my application, I have a Javascript function which get called after every minute. This javascript function returns me new comma seprated string each time which contains image path and image name. I simply split this string and set the Image path to image and text to lable. Goel is to achive effect like image slide sh...

How to show newlines from textarea in a table?

hi there in a form I have a textarea where obviously text is entered. When the input is finished the content gets submitted to the server and is being stored in a database... When i display the input the user made within a table, the newlines are not visible. When I inspect the source the newlines are there, but within a table the newlin...

Removing HTML frames

Hi I have a website which splits the screen into two frames; the top half is the name of my website; the bottom half is an advertised website. I want it so if the user clicks the link on the top half (my website) the user is taken to my homepage. This works, but my website is loaded into the top half and not the whole screen. How do ...