(the images use lightbox javascript, and the location and twitter feed use gray box)
When you click on the twitter, location or map feed...
Below is an example code, as you can see in the 'rel' tag it references the lighbox, a javascript web 2.0 pop up, and the information such as time and description is included with the picture in the lightbox.
//loads rss feed variable of the image, concatination used to add a counter e.g. 1,2,3... to each photo so that they can be individually edited - using css ID, however had to apply ID to the image source not ID for css styles to work // also loads the description under each picture to explain what they the picuture shows. // changed timezone to GMT and formats $ipubDate = $photoitem->pubDate; $ipubDate = strftime("%Y-%m-%d %H:%M:%S", strtotime($ipubDate)); print ""; print "\n"; print "\n"; //breaks the photo feed if it reaches the selected number if($photocounter==19){ break; }
No comments:
Post a Comment