Im trying to create a drop down list/menu of users from my SQL database table. Could anyone help me with the code please? The code below is just for a normal list with options 1 & 2. How do i make the list retrieve all the items in a specific table using html/php/sql. Sorry im not very experienced with this, thanks in advance.
<select n...
The text 'Step 1' is not centering on the image no matter what I put in as the margin. I dont have any where to upload atm but heres a screen grab:
http://i.imgur.com/fWrQp.png
I want the text to align with the center of the image.
Any suggestions?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/x...
Why wont this work?
if (byId("annonsera_price").style.display=='inline' || byId("annonsera_price").style.display=='block'){
alert ("Hello");
}
function byId(x){
return document.getElementById(x);
}
update2:
<input style="width:100px;" type="text" name="annonsera_price" id="annonsera_price">
I haven't set it with css either...
The javascript code below is called by an event in order to overwrite the contents of an iframe with id jj. It works properly. However, removing the calls to open() and close() cause the iframe to become blank every other time the code is called, at least in IE8 and FF3. Opera doesn't seem to care. What is going on here?
var a = doc...
Is there any way to fade out the set value of a field on focus, and then fade it back in on blur if nothing was entered?
I'd like to fade out "Enter your name..." on focus, but fade it back in on blur if the user didn't enter anything.
Thanks!
...
I have a contact form on a page that sends the details of the form to an email address. You can view it here, www.wonder.ie
The HTML for the form is the following:
<form id="form" name="form27" class="wufoo page" enctype="multipart/form-data" method="post" action="mailer.php">
<ul>
<li id="foli1">
<label clas...
I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the <embed> tag on my output script.
This is the code I'm using to for the video:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/CgW_5Vthsds"&g...
I'm building a custom print template closely following the directions in Chuck Ainslie's articles. One thing I'd like to do is generate a table of contents on the fly with the actual page numbers.
Is there any way too find what part of the document a layoutrect instance contains? Basically, I want to scan the original document for speci...
I'm trying to re-build (note, I am primarily an application developer, know very little so far about web development beyond HTML) a website for the family business, and am running into a bit of trouble so far. The CSS menu system I have built works fine in Firefox, but in Internet Explorer, none of the menu items appear when the mouse h...
I am trying add a descriptive tag under each image but most of the code is in PHP and i am not to familiar with how to program it without screwing up the whole structure. Here is the website: http://suncoastdeck.com/index.php?page=portfolio&start=0
Here is the code for the portfolio page:
<div class="content-box">
<?
//to...
Is it possible to find out what form you're currently on from a js file?
This is my issue.. I have a form, form1, that includes a table.. when a row in the table is clicked on another form pops up, form2. If the user "saves successfully" on form2, the form closes and form1 comes back into focus..my question, is it possible to send an id...
I'm working on a site where these bugs randomly appear in Safari and Chrome:
i.e. tags appear not to have been closed off completely. The problem is when I view the source I discover it's completely valid.
Edit
Here's the offending HTML which I saved: http://www.pastebin.com/f1e0edd24
...
This is simple stuff to many, my CSS skills are somewhat rusty and was hoping to find the best solution to this problem.
Here is my current html code.
<div class="head_wrap">
<div id="logo"></div>
<div id="search">
<form action="">
<input type="text" name="search" id="search" />
<button id="replacement-2"></button>
</form></div...
I got a selection list:
<select>
<option value="0" onclick="anders('1')">Anders</option>
<option value="200" onclick="anders('');" selected="selected">€ 200,-</option>
<option value="300" onclick="anders('')">€ 300,-</option>
<option value="400" onclick="anders('')">€ 400,-</option>
<option value="500" onclick="anders(...
I wish to align a character in HTML to the tops of the characters next to it. The css vertical-align attribute seems to be what I want, but I'm having some trouble.
Using vertical-align: text-top doesn't seem to do what I want, but I thought it should from reading the spec.
Currently, I'm using vertical-align: 10% which is a reasonabl...
I've got some HTML that renders just fine if it's in a browser window by itself. However, if I try bringing it up in a "lightbox" embedded inside another page using some Javascript magic, it renders incorrectly: the images I have inside table cells wind up expanding horizontally (but not vertically) to fill their table cells, despite th...
I am looking for a way to create html files dynamically in python. I am writing a gallery script, which iterates over directories, collecting file meta data. I intended to then use this data to automatically create a picture gallery, based on html. Something very simple, just a table of pictures.
I really don't think writing to a f...
As a web developer, it is tough to do web design which is compatible with IE6. Is it required to make webpages compatible with css?. I heard the usage of IE6 is low.
My question is, whether I should still check compatibility of the webpage that i make, in Internet Explorer 6?
...
Hello,
How much the HTML5 and CSS3 are going to elevate the time and effort used by both designers and developers using their current incarnations? Will it be a child's play?
...
How many total <meta> tag available in X/HTML and Which should be used and which not?
see this tool http://www.ulhas.net/tools/tu-metagen
is there any pros to use all other meta tags other than meta description?
note: Google doesn't give any importance to meta keywords.
...