|
suggestions please
|
|
Source:Internet Author:Unknow Pubdate:2008-10-28
|
|
ruggedscot (Electrical)
8 Jul 08 12:51
This is one that has been making me think....
I saw a site a while back and Id love to know how they did it and how this could be used.
There was a list of items on the left hand side of the page, when you hovered the pointer over that item it brought up a picture. When you clicked on the item it opened the page. I have seen a use for this and it would be blow away representation of a project. I have a large number of remote sites that needs to be monitored and Id like to be able to set this up so when the mouse was near to the name it would bring up a page with a photo and some descriptive information. When it was clicked on it would open up another page and you would be able to obtain more information from this page about the site. Is this really difficult or is it quite easy?
macgyvers2000 (Electrical)
8 Jul 08 14:03
字串9
I've put together plenty of simple stuff like that... javascript (not java) is your friend. If you can write basic programs in C, you'll have no issues with javascript. Plenty of example code out there for everything under the sun, just cut, paste, and hack together the functionality you need. Just a couple of lines of script are all that's need to create a webpage that will change a picture when the mouse rolls over it, and this sounds like exactly what you need.
Create a small pic of the site (or some text), roll over the small pic and a large version shows up. Updating the image to the latest info will take a bit more logic, but the overall idea is truly just a few lines of script. Dan - Owner http://www.Hi-TecDesigns.com
ruggedscot (Electrical)
8 Jul 08 14:46
Where do I start and where is this found on the web?
Thanks for your help so far
字串1
macgyvers2000 (Electrical)
8 Jul 08 15:35
I find these more useful as I can hack several of them into the functionality I want. Dan - Owner http://www.Hi-TecDesigns.com
richs (Computer)
10 Jul 08 16:46
Hiya-
Just a head's up. I did something like that in the past and I found that although I had updated my picture on the server, the browser, in it's infinite wisdom (even with the cacheing off) still decided that since the picture was the same filename, it didn't need to go out and get a new version.
I used my server log's to find that. Apache's log and a tail -f pointed it right out. I had to use varying file names for the picture. I used PHP for the server scripting and javascript for the client (browser) scripting.
Hope this little head's up will help. 字串8
Cheers,
Rich S.
ruggedscot (Electrical)
11 Jul 08 6:49
Cheers - Im doing my research on this one and trying to see if it is viable and how easy it is to achive - bang for the buck as they say - too much buck and it wont be a goer, we could have something like 500 site or so distributed about and having this would be a great tool but not to the detriment of the actual task in hand.
macgyvers2000 (Electrical)
11 Jul 08 8:17
You can send a command to the browser that says "reload all pictures, regardless of existence in cache". Just another cookie... Dan - Owner http://www.Hi-TecDesigns.com
(Click:)
|
| Previous:PIC/ Hobby electronics forums Next:Reading formatted files using Perl |
|
[ Add TO Favorites]
[TOP] [PRINT]
[CLOCE WINDOWS] |
|
|
|