rarebit
-
Posts
1,002 -
Joined
-
Last visited
Posts posted by rarebit
-
-
not quite sure, but are you looking for meta 'desc' instead... (description)
-
p.s. using ie6 the anims seem a bit jittery and have an issue which reloads the images (not that i've gone to extent of preloading, even though the ones it loads are definitely already loaded). Also when you solve the puzzle it flashes everything, very strange. This are all ie6 issues.
Yes - it starts and resets to a simple solution, so it's quick to test, proper is commented out.
Yes - The brown square zindex has some issues at times, to be looked into.
Yes - Theres a few more issues, but when I spend time on it i'll sort them...
-
document.write() has got nothing to do with the real issue, the solution has been sorted, even if using the longer method for ie's sake... it was all about the function returns! ! !
here's the stage 1 demo for the client... retrocentro
-
I don't think you comprehend what I was doing, basically because you removed the function entirely, even though the post title inferred the use of a function. Once again this was just a test example and in the real thing it doesn't use 'document.write', but could you explain why it's bad to use it?
-
What country postcode are you working on? If it's UK, then it might be third character (can't rem if theres possibility of 4). Any which way though...
if, if, if document.write(pc.substring(0, 3) + " " + pc.substring(4, pc.length));
this might need a slight tweet since it's not tested...
-
I think you missed the point of a function returning numerous variables, yes I was using the modern interpretation, like many modern languages allow (e.g. FF, Opera). The example was just that, a simple example, so getting rid of the function was inappropriate, too obvious to be true, but I 'pose I did give the bone...
-
hmm, found the problem...
obj.attachEvent('onclick', function(evt) { sg_click(obj, id); }); obj.attachEvent('mouseover', function(evt) { sg_over(obj, id); }); obj.attachEvent('mouseout', function(evt) { sg_out(obj, id); });
now changed to...
obj.attachEvent('onclick', function(evt) { sg_click(obj, id); }); obj.attachEvent('onmouseover', function(evt) { sg_over(obj, id); }); obj.attachEvent('onmouseout', function(evt) { sg_out(obj, id); });
My question is, why didn't IE tell me it had a problem with this?
What is best way to check scripts for IE compatibility?
-
Hi,
I've been trying to get a page working in IE (it's fine in FF2 + Opera). I've not used windows or IE for quite a while, so it's somewhat alien to me. I seem to have got rid of all errors and the page initialises, however you can't play the game. Can anyone point me in the right direction please?
I've hosted a demo on dev site temporally here: http://retro.monkies.co.uk/
p.s. the way it's set you can complete in either 3 or 9 moves easily!
-
No you won't, it's know as a GET statement (from a form is a POST). Basically anything after the ? is passed a a key value pair to the php interpreter, you can have multiple sets by delimiting with &. You can call the variables whatever you want, id is just easily descriptive (honestly). So:
<a href="login.php?name=me&pass=password">login</a>
not the best example but it illustrates the point. Next you need to get the variable, it's held in an array called $_GET (see reserved variables).
if(isset($_GET['name'])) { echo "name: ".$_GET['name']."<br>"; } if(isset($_GET['pass'])) { $pass = $_GET['pass']; echo "pass: ".$pass."<br>"; }
-
Thats how I learnt, and I also think it's the best way...
But if you just want the easy answer, then:
<?php $WStart = "xxx"; $WStop = "yyy"; $SStart = "zzz"; $SStop = "aaa"; $GStart = "bbb"; $GStop = "ccc"; $s = "<?=\$WStart?>Urban%20Renewal<?=\$WStop .\$SStart?>Urban%20Renewal<?=\$SStop .\$GStart?>Urban%20Renewal<?=\$GStop?>"; ob_start(); $x = eval("?>".$s); $l = ob_get_contents(); ob_end_clean(); print $l."<br>"; ?>
I've added escaping slashes to the original string otherwise in this situation the variables would replace them. If reading a file or something, this wouldn't be a problem.
After you've called 'ob_start()' nothing will be outputted to stdout until you call some form of 'ob_end'...
Not that i've recently read the manual, but i'd say $x holds the result, e.g. if it executed ok...
-
lol
That should be a string, maybe a file that you've opened and read into a string...
Actually from reading the manual page, it could also be an array of strings.
-
yeah thats why I know it, but there was a comment on a page about arrays and something to do with passing 'array.slice()' as a reference. The quick test I tried didn't work but made a 'mental' note to look into it...
-
maybe i'm losing it but this might be what you want...
$search = Array("the site", "the height"); $replace = Array("<b>the site</b>", "<i>the height</i>"); str_replace($search,$replace, WHOLE_PAGE);
-
are you wanting to do this or someone else to do it for you?
The new part will be client specific and therefore nothing to with php. A file upload feature is half client / half server, but thats easy and another question.
Back to the original question:
Once file is uploaded, you could use some form of the 'exec' command to run a system ocr program and then read its output. Once again what program you use depends upon what os your server runs and if or what is installed (e.g. if your host will install, if not your own server or a slice)
-
str_replace should, but also look at preg_replace
-
function test() { var x = 3; var y = 7; return [x, y]; } var a; a = test(); document.write('a: ' + a[0] + ', b: ' + a[1] + '<br>');
This is what I tried this morning and it gave no errors but the explorer version still isn't working. So i've finally installed comodo and will get my windows online and find something to help debug it.
No this example doesn't really do anything, it was just a testbed for the question. There's another variation to use 'pointers' but i've not looked into it with js (just saw a comment and thought i'd give it a quick try).
I'll add your part and see if ie bails out.
Cheers
-
where is the function returning an array? so no you loone that isn't a solution!
-
$player->awake = 'not'; echo 'goodnight!';
-
not really, would need to the watermark before application
-
oh yeah line 76, I know it well, it's definitely not the one with the word 'blah' on it...
-
$comments = "The text for the mail...\n\n".$phone;
surely thats a cosmetic gripe...
-
I take it your on a machine running windows...
p.s look at the slashes, your mixing them...
-
as for colours I can only speculate that its to do with the watermark image?
I find that outputting as jpg creates too many artifacts for my liking so I tend to stick to png or losses formats.
-
if($_GET['Links']) { $link = $_GET['Links']; if(strcmp($link,'home')==) { // display home page } elseif(strcmp($link,'help')==0) { // display help page } else { // display default } }
something like that...
or yes, something like fearsoldiers' beat me to...
Bolder, but is it better?
in Website Critique
Posted
I've recently changed the theme of my new site and i'm a bit unsure. It was orange and the font was 'lighter', so i've made it somewhat bolder, using blue and red. Not that I dislike it, but I don't prefer it. However at least the forum isn't orange now (a bit off putting me thought):
http://www.lovemap.co.uk
If you need to subscribe this code 'FREE_FREAK_6' will give you 6 months for free (also without inputting ant cc details).
Many Thanks!