M
Matthew Robinson
i wrote a website for somebody, in php and mysql. The person i wrote it
for wanted it to be as simple to administer as possible, so i set up
phpmyadmin for the database, and showed him how to upload pictures using
ftp (productid.jpg). so i scaled these pictures down to small pictures
(bad practice i know, but he wants it simple), and onclick it shows the
pictures full size in a new window.
anyway, theres a problem with the speed. obviously once there are a few
items on the page, the pictures are going to really slow down the page, so
i was wondering if there is anyway to have a button by each item, then
onClick, replace the button with the relevant picture. it has to be
dynamic, and there's going to be different buttons with different pictures
on each item, so the code cant go in the <head>
the page is http://www.houseproudlancs.co.uk/search.php
for wanted it to be as simple to administer as possible, so i set up
phpmyadmin for the database, and showed him how to upload pictures using
ftp (productid.jpg). so i scaled these pictures down to small pictures
(bad practice i know, but he wants it simple), and onclick it shows the
pictures full size in a new window.
anyway, theres a problem with the speed. obviously once there are a few
items on the page, the pictures are going to really slow down the page, so
i was wondering if there is anyway to have a button by each item, then
onClick, replace the button with the relevant picture. it has to be
dynamic, and there's going to be different buttons with different pictures
on each item, so the code cant go in the <head>
the page is http://www.houseproudlancs.co.uk/search.php