Forum: JavaScript / DHTML / AJAX Oct 16th, 2009 |
| Replies: 12 Views: 702 <script type="text/javascript">
window.onload = function(){
var now = new Date();
var hour = now.getHours();
var vwimg = "";
if(hour < 19 & hour >= 6){ //Daytime(6h - 19h)
vwimg... |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 12 Views: 702 That should work, yes :P
If the <div causes layout trouble you could always turn it into a <span by the way. |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 12 Views: 702 <script type="text/javascript">
window.onload = function(){
var now = new Date();
var hour = now.getHours();
var vwimg = "";
if(hour < 19 & hour >= 6){ //Daytime(6h - 19h)
vwimg... |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 12 Views: 702 Change...
document.getElementById("linkContainer").innerHTML="<a href='"+vwimg+"'>"+vwimg+"</a>";
into...
document.getElementById("linkContainer").innerHTML=vwimg;
And I think... |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 12 Views: 702 Hi there,
Perhaps something like this.
<script type="text/javascript">
window.onload = function(){
var now = new Date();
var hour = now.getHours();
var vwimg = ""; |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 9 Views: 574 I'll give you something to start with...
remove all the onkeypress/up/down="if()" etc.
if you have a function called totalM() do not name a variable totalM ...it just messes things up
... |
Forum: JavaScript / DHTML / AJAX Oct 11th, 2009 |
| Replies: 9 Views: 574 Code tags :)
About the general code...
Errors: 12
Warnings: 140
<html>
<head> |
Forum: HTML and CSS Oct 11th, 2009 |
| Replies: 6 Views: 531 With a height of 587 it's not that weird to run out of image...
Stretching a background image is only supported in CSS3.
Perhaps this (http://webdesign.about.com/od/css3/f/blfaqbgsize.htm)... |
Forum: HTML and CSS Oct 11th, 2009 |
| Replies: 6 Views: 531 Hi there,
Could his screen perhaps be bigger? :D
You're using background-repeat:no-repeat; so perhaps his background ran out of image and showed the color black instead. :P
If you'd like to... |
Forum: JavaScript / DHTML / AJAX Oct 11th, 2009 |
| Replies: 9 Views: 574 In that case you would need to find a way to check whether all values are actually inserted in the text boxes. For instance:
if (/*all inputs are filled*/){
// calculate average
} else {
... |
Forum: JavaScript / DHTML / AJAX Oct 10th, 2009 |
| Replies: 9 Views: 574 Hi there,
Just at first glance, you're calling the function by using onKeyPress. This means that as soon as you press a key the function gets called; there simply isn't a number in the field (yet)... |
Forum: JavaScript / DHTML / AJAX Oct 9th, 2009 |
| Replies: 2 Views: 476 Hi there,
While testing the form you described I found typing with such alterations to be extremely annoying, but here goes :P
var col = 4; //number of 'cells' in a row
var current;
var... |
Forum: HTML and CSS Oct 2nd, 2009 |
| Replies: 5 Views: 292 You could use tables, although using too many will clutter the code just like the WYSIWYG and make it far more difficult to make changes later on. Positioning... |
Forum: HTML and CSS Oct 2nd, 2009 |
| Replies: 5 Views: 292 In that case I'm afraid I misunderstood the problem. :P
I looked at the code you provided and it does seem that everything is absolute and certainly not that easy to center.
The best thing now... |
Forum: HTML and CSS Oct 2nd, 2009 |
| Replies: 5 Views: 292 Hi there,
If centering the text would solve the problem for you, perhaps you could center an element and use text-align:left; on that element to prevent the text from centering as well.
... |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 2 Views: 344 Hi there,
At first glance I notice the original function is function LoadGallery(pictureName,imageFile,titleCaption,captionText) while yours is function LoadGallery(pictureName,imageFile). Yet on... |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 2 Views: 261 Hi there,
I'm not really sure what you mean, but if it's the total number of rows (and thus number of textboxes) you're looking for, you could try something like getElementsByTagName() to count... |
Forum: HTML and CSS Oct 1st, 2009 |
| Replies: 3 Views: 626 Hi there,
If you only want to use CSS to get the background image to fit the entire screen, you could try something like this.
#img {
width:100%;
height:auto;
max-width:999px; ... |
Forum: HTML and CSS Oct 1st, 2009 |
| Replies: 6 Views: 374 Would those tags happen to be in between the <ul> tags? In that case they would still create a whitespace above your header. The suggestions almostbob made should help in removing all the margins for... |
Forum: HTML and CSS Sep 28th, 2009 |
| Replies: 3 Views: 404 Hi there,
This might not solve your problem right away, but it might prevent some issues in the future (especially if you're copying your code over and over).
On lines 11 and 18 of your HTML... |
Forum: Legacy and Other Languages May 16th, 2009 |
| Replies: 1 Views: 778 Hi there,
Basically, all you have to do is draw all the possible transitions between the different states. So, for example, begin at start, then to a state with one coin inserted, one with... |
Forum: HTML and CSS May 14th, 2009 |
| Replies: 5 Views: 813 It seems that there are a lot of <BR /> tags in between your table headers (269 to be exact :-O ) starting from line 756. Deleting those tags should remove the large number of line breaks. |
Forum: Web Browsers May 13th, 2009 |
| Replies: 3 Views: 588 Try switching languages by clicking on Tools > Preferences > General > Details. (or whichever foreign words seem to resemble the most :-/ ) If Japanese isn't listed, you can download the necessary... |
Forum: JavaScript / DHTML / AJAX May 13th, 2009 |
| Replies: 16 Views: 1,332 Well, you could save the url you'd like to search into a string and use the JavaScript match() method: stringObject.match(searchvalue) to search for a specific word inside the string. If you want to,... |