28.03.2007, 17:42
общий
это ответ
Здравствуйте, Angel7!
Есть спец ресурсы, линеечки отсчета
http://www.akusherstvo.ru/lines/
и юзербары
http://userbars.ru/
там есть готовые
Если же хотите реализовать сами, то
1 ну это в принципе не сложно, дату и тип отсчета храним в базе. При обращении к скрипты вычисляем сколько прошло/осталось времени и на сколько соответственно продвинуть ползунок.
2 А и не нужно его передвигать, при помощи библиотеки GD загружаем рисунки ползунка, линейки и рисуем где нужно, все это есть в справке.
3 пишем на ней.
Приложение:
imagecopy(PHP 3 >= 3.0.6, PHP 4, PHP 5)imagecopy -- Copy part of an imageDescriptionbool imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h )Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y. imagecopymerge(PHP 4 >= 4.0.1, PHP 5)imagecopymerge -- Copy and merge part of an imageDescriptionbool imagecopymerge ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct )Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y. The two images will be merged according to pct which can range from 0 to 100. When pct = 0, no action is taken, when 100 this function behaves identically to imagecopy() for pallete images, while it implements alpha transparency for true colour images. Замечание: This function was added in PHP 4.0.6imagettftext(PHP 3, PHP 4, PHP 5)imagettftext -- Write text to the image using TrueType fontsDescriptionarray imagettftext ( resource image, float size, float angle, int x, int y, int color, string fontfile, string text ) imagefttext(PHP 4 >= 4.1.0, PHP 5)imagefttext -- Write text to the image using fonts using FreeType 2Descriptionarray imagefttext ( resource image, float size, float angle, int x, int y, int col, string font_file, string text [, array extrainfo] )