Hello all
I have an issue getting this to work in firefox, it seems to work fine in other browsers but firefox gives an error window.event is undefined when I try to use this. Any ideas?
<script>
document.onkeydown=function(evt) {
var thelink
if (window.event.keyCode==37)...
THANK YOU SO MUCH Feherke.
I really wish I knew how to use Javascript to the full. I picked up PHP really fast, it just makes sense to me but Javascript seems to be more difficult to learn, I just haven't been able to grasp the context very well yet. grrrr.
Oh well I'll keep trying. Thanks...
EXCELLENT, that worked great.
Another question though, how would I get it to work in another situation such as this. I have another page that uses a little Javascript to change a large picture, by clicking a button you can make the next thumbnail be the large picture. Here is code for it...
On my website I use paging so that all the results don't hit the page all at once. Then of coarse I have links to take you to the next set of results. What I would like to do is make the right and left arrow buttons on the keyboard work to go forward and backward to other pages of results. I use...
OK I got it. I found the following, modified it a little and it works great, just what I wanted it to do.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta...
.....adding to last post
If I knew how to get the lat and long variables out of this function :
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not...
I appreciate the effort on that one, but how can I have a variable containing an address on the page and as soon as you load the page it looks at the address in that variable and centers the map on that? That is what I need to do. In the code I pasted there was one function that does that but I...
I write PHP not javascript and I just need a little assistance with this one thing. Yes I have tried things but I don't know the syntax to get it to work. I have also tried to research it and did not find anything. If someone could help with this I would greatly appreciate it.
I am trying to get a google map on my site but I cant figure part of it out. I know very little about javascript, Im sure this is a simple fix. The code below starts with one map and has a box to go to another location. What I would like is for the page to come up to whatever address that I have...
When I pull up the dimensions of the picture it says 1000 x 1504 , where the pictures that are wider then they are tall all show 1504 X 1000 so I really don't think that my OS is auto rotating the pictures when displaying them. My Camera does that automatically so that when you import the photos...
I am creating a website that allows uploading of images. The images are resized to certain specs, then placed into a folder. One problem I have is when I upload and resize a photo that is taller than it is wide the photo actually rotates 90 degrees. I am using imagecopyresampled to resize the...
OK, I can't seem to get this to work.
If I was to take your initial suggestion jpadie and put the files in a folder and just have links to the database how would I change this code to be able to resize the images before placing them in the folder?
Thanks
That wont work either as $type returns a number.
1 = gif
2 = jpeg
3 = png
so tried changing it to this
//create new canvas
$thumb = imagecreatetruecolor($newwidth, $newheight);
if ($image_type == 2){
$c = 'imagecreatefromjpeg';
$o = 'imagejpeg';
} elseif ($image_type == 1){
$c =...
jpadie
It doesn't seem to like the following line, it gave an error.
$c = 'imagecreatefrom'.$type ($_FILES['picture']['tmp_name']);
PHP Fatal error: Function name must be a string
Any ideas on what we did wrong?
Thanks
Hello
Im trying to upload and resize an image and insert it into a MySQL database, but I am doing something wrong. It inserts a record but it is very small and not the image at all. When I check the error log is shows this:
PHP Warning: imagecopyresized(): supplied argument is not a valid...
I am trying to display a calendar on my web page, just the current month. I think the easiest way to do this would be to just display a unix calendar with the cal command. I did this
$cal = `cal`;
$cal = nl2br($cal);
echo $cal;
but the numbers don't line up correctly.
Any one know how to...
Thanks jpadie,
I had to alter it to the following to get it to work but now it is working.
$date = "2008-06-16";
$newdate = date("Y-m-d",strtotime('+1 year', strtotime($date)));
echo $newdate ;
Excellent!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.