html

Embedd .wav files in HTML page in all browsers (no controls)

Hi, all. I need to play few wav files on button click. I found solution working in IE but it requires QickTime plugin for firefox. Is there any other way? <html> <head> <script> function DHTMLSound(surl) { document.getElementById("dummyspan").innerHTML= "<embed src='"+surl+"' hidden=true autostart=true loop=false>"; } ...

fl.video.VideoPlayer loads flv relative to swf?

Update: Turns out this is undocumented behaviour of the NetStream class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc... annoying. I am having a strange issue where loading an FLV file using the fl.video.VideoPlayer class that comes with CS4: Adobe docs here Usually when loading ...

css div centering

I am trying to center a div button and its not working here is the css .game-actions{ margin-left:auto; margin-right:auto; } .game-actions a.up { display: block; text-decoration: none; font-weight: bold; padding:12px 32px; float: left; border: 1px solid #c1d9f6; -moz-border-radius: 7px; -webkit-bord...

Pressing the back button does not trigger <body>'s OnLoad

Hey all, My checkout cart displays (1) an animation for "Processing Order..." after the 's been (2) submitted and the card is being processed in a php script. However, there's a bug triggered when the user has reached the "order accepted" page, and pressed the back button. The "Processing Order..." animation is still displayed. (1) The...

How to assign HTML as a variable value in PHP?

My goal is to store some html-formatted data in a variable, then echo it later. For example: <?php $foo = '<div id="x">'; echo $foo; ?> The above doesn't work. Why? Edit Sorry for the bad question. I thought it didn't work because nothing is visible when viewed in a browser. Of course nothing is visible because there is only a div...

How to show extended option in select list?

While using fixed width select tag , there is one bug in IE. When the content of the option in the select tag is more than the width of select tag its hide. Its working fine in fire fox , not in IE. ...

Is it possible to reload a form after an input type="file" changes?

Is it possible to reload a form after 'file-input' change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it is possible to reload a form OnChange of the file-input and then call the php code which uploads the picture, so that the user can preview ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large background images, the whole thing becomes visible. My current screen resolution is 1280 x 1024. If I do the following: Specify a backg...

Why is moving an element out of and back into the viewport affecting it?

Hey, So I've got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I have never seen an issue like this before. Has anyone else and can anyone suggest a solution. Below are examples of the working and bro...

possible to pass variable to javascript function from html form like this?

<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js function? Thanks ...

image changed but appears the same in browser...

Hi All, I'm writing a php script to crop an image. The script overwrites the 'old' image with the 'new' one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. If i check my hard disk (i'm working on local machine) i can see that the image HAS changed, but the HTML doesn't pick it up. Mayb...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can't be opened again. ...

How to show/hide table row <tr> in .ascx page

I tried this, but could not get through:- code behind protected HtmlTableRow trComment; protected void Page_Load(object sender, EventArgs e) { //Show/Hide table rows (TR) trComment.Visible = ConfigUtil.DisplaySummaryComment; } .ascx page <tr id="trComment" runat="server"> <td style="vertical-align:top; text-align:left;"...

TBODY scrolls on focus in FireFox

HTML <html> <body> <div style="width:100%; height: 300px; overflow: auto;"> <table cellspacing="0" cellpadding="2" style="width:100%;"> <thead> <tr> <td>Col1</td> <td>Col2</td> <td>Col3</td> <td>Col4</td> </tr> </thead> <tbody tabindex="0"> <tr> <td>...

Set width of dropdown element in HTML select dropdown options

I am working on a website that involves automatically populating a select box using a PHP script. This all works fine except the problem is that what I am using to populate the text box have very long titles (they are journal articles and presentation titles). The dropdown box extends to the width of the longest element, which stretche...

ASCII ART IN WEBBROWSER

How should I do to make it print like it looks in the html document in the web browser? =/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Example</title> </head> <body> ###### # # ## # # #...

Create new etherpad using PHP and CURL

I'm trying to write a simple PHP script which automatically sets up new etherpads (see http://etherpad.com/). They don't have an API (yet) for creating new pads so I'm trying to figure if I can do things another way. After playing around some, I found that if you append a random string to etherpad.com to a not-yet-created pad, it'll co...

HTML > PDF with PHP?

How can i convert a html page (via $curl or something) to a pdf file? ...

Insert link with text from another link greasemonkey

What I want to do is insert a link and img for every thread of this forum I use. The href of the link should be based on the href of a child of the element. Here is a partial view of the HTML, I've taken out some things for clarity, let me know if I've taken too much. The very last tag repeats 20 or so times, depending how much threads ...

HTML text input event

I have a form, and want to disable/enable its submit button depending on whether the form's input text fields are empty or have had text entered into them. I think this means having an event handler for the input text fields' keydown or keypress events: when it's fired, this event handler should test whether the input text fields contai...