216 Posted Topics
Re: Hi there, [icode]onChange[/icode] cannot be used in [icode]<a>[/icode]. Neither can [icode]checked[/icode]. Try using [icode]<a onClick="">[/icode] instead. Or make it a checkbox, of course. Traevel | |
Re: Hi there, Replacing... [code=JavaScript]function init(){ var ep = 1289257200;; var ct=Math.round(new Date().getTime()/1000); var width = getWidth(); var height = getHeight(); if(ep>ct){ var opts = {}; opts.id = 'page'; opts.width = width; opts.height = height; opts.scriptable = 'true'; opts.allowScriptAccess = 'sameDomain'; opts.loop = 'false'; opts.quality = 'high'; opts.bgcolor = '#ffffff'; opts.scale … | |
Re: Hi there, Try something like this... [code=HTML and CSS] <html> <head> <style type="text/css"> .main{ _position:relative; display:table; width:300px; height:300px; background-color:#FF0000; } .content{ _position:absolute; _top:50%; width:300px; height:300px; display:table-cell; vertical-align:middle; text-align:center; } </style> </head> <body> <div class="main"> <div class="content"> Some Text </div> </div> </body> </html> [/code] It should work in IE and FF. … | |
Re: Hi there, Could his screen perhaps be bigger? :D You're using [icode]background-repeat:no-repeat;[/icode] so perhaps his background ran out of image and showed the color black instead. :P If you'd like to repeat the image vertically use [icode]background-repeat:repeat-y;[/icode] If that's not it, could you mention the size of the background image … | |
Re: Hi there, Perhaps something like this. [code=JavaScript] <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 = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) … | |
Re: Hi there, Just at first glance, you're calling the function by using [icode]onKeyPress[/icode]. This means that as soon as you [b]press[/b] a key the function gets called; there simply isn't a number in the field (yet) at the moment the function is being called. Try changing [icode]onKeyPress[/icode] into [icode]onKeyUp[/icode] for … | |
Re: Hi there, At first glance I notice the original function is [icode]function LoadGallery(pictureName,imageFile,titleCaption,captionText)[/icode] while yours is [icode]function LoadGallery(pictureName,imageFile)[/icode]. Yet on line 88 you call the LoadGallery function with 4 parameters [icode]<a href="#_self" onclick="LoadGallery('showreel','$image','showcaption','$caption')">[/icode]. The JavaScript errors you keep getting on your site do mention the lack of a 'titleCaption' variable … | |
Re: Hi there, If centering the text would solve the problem for you, perhaps you could center an element and use [icode]text-align:left;[/icode] on that element to prevent the text from centering as well. [code=css] #div{ width:50%; text-align:left; margin: 0 auto; } [/code] This way the element will center on the page … | |
Re: 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. [code=css] #img { width:100%; height:auto; max-width:999px; max-height:999px; } [/code] Changing the 999's into the width and height of the original picture accordingly. What I do … | |
Re: 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 [icode]getElementsByTagName()[/icode] to count the number of inputs. [URL="http://www.w3schools.com/HTMLDOM/met_doc_getelementsbytagname.asp"]Reference[/URL] Again, if it's not the answer you were looking for, please explain … | |
Re: Would those tags happen to be in between the [icode]<ul>[/icode] 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 ul and li tags, and they certainly remove the whitespace in Firefox with the code … | |
Re: 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 code you are using cellpadding and cellspacing, but neither one is a valid CSS … | |
Re: 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 B-button pushed, the corresponding output, and from there back to start. [ICODE](start) -> (p) -> (B:dispense … | |
Re: It seems that there are a lot of [ICODE]<BR />[/ICODE] 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. | |
Re: 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 language files [URL="http://www.opera.com/download/languagefiles/"]here[/URL]. Otherwise try Googling some words to figure out what language it actually is, that … | |
Re: Well, you could save the url you'd like to search into a string and use the JavaScript match() method: [icode]stringObject.match(searchvalue)[/icode] to search for a specific word inside the string. If you want to, you can also opt for a different method and use Regular Expressions to search for recurring patterns … |
The End.