This one-screen program is made to make post-making easier. It's a good place to start if you're new to posting but is still useful if you're a veteran poster.
Installation
- In Firefix or Chrome, right click this link, choose "Save Link As",
in the dialog box, set "Save as type" as "All files",
and "File name" as "yykdpost.zip", then save it. - Use winzip, winrar or 7-zip to extract the zip content somewhere, like C:/, and there will be a directory named "C:/yykdpost".
How to use it
- Double click "yykdpost.hta" in yykdpost directory;
- Click "New post", fill in relevant text fields and click "Test" to experiment;
- Once satisfied with the layout, click "Copy to clipboard";
- In YYKD post, fill in Subject line, click [HTML源代码], put the cursor in the text area and then paste.
Now come a few details
- First thing first, select example files and click "Test" to get a feel of how the program works.
- All measures (postion[Left,Top] and size[Width,Height]) are in pixels. Positions start from upper-left corner with (0,0).
Image.Top is the distance between the top of the post area and the top of the image.
If the image is too wide, you can put a smaller Width and adjust Height accordingly.Or you can set Image.Left to a negative number to center the image.
If the post does not have an image (for ex. one of the flashes provides the background), you still need to put Image[Top,Size] to set the frame for the flashes. - The positioning of the music player depends on the "Left" parameter:
If "Left" is -2, then music player is completely hidden. suitable for single mp3 file;
If "Left" is -1, then music player is placed below the image and "Top" is the distance between the bottom of the image and the top of the music player;
Otherwise, the music player is placed somewhere relative to the upper-left corner of the image by [Left,Top].
The music file is either .mp3 or .xml, in which case is a playlist. Look at this example for how to create playlists. The config file describes how the music player looks like (color... one example here). Other URLs(images and flashes) can be local files (for testing only, before final posting, you still need to upload them on the Internet), but playlist and config files must be on the Internet, even for testing. - A dozen example XML files are included with the program.
"Bahama.xml" shows how "Image Border Color" and "Border width" work.
"Yuanyuan88-1.xml" shows how "Background Start Color" and "Background End Color" work. - There are two checkboxes for each flash which allow you to hide the flash or put a frame around it for testing purposes. "Copy to clipboard" includes all the flashes without frame.
- The textarea at the top of the window contains HTML codes which are placed above the image.
- The textarea above the buttons row contains HTML codes which are placed together with image and flashes.
- The textarea below the buttons row contains HTML codes which are placed beneath the music player or the image.
- Each time you click "Test", the content is saved back into XML file (in "sandbox" sub-directory, previous versions being put in "versions" sub-directory) so you won't lose what you have done after quitting the program. If you want to backup your work, backup XML files.
- "Copy to clipboard" removes all line breaks in HTML code to get better cross-browser compatibility whilst "View Code" shows the original generated code.
- This program generates correct code to embed playlists, hopefully you won't get "Playlist not found" error.
For reference, here is the code used to embed playlists :
<embed height='245' width='200' name='mp3player' border='0'
type='application/x-shockwave-flash' wmode='transparent'
pluginspage='http://www.macromedia.com/go/getflashplayer'
src='http://space.wenxuecity.com/media/1234581326.swf'
flashvars='&config=http://space.wenxuecity.com/media/1235009667.xml&file=http://space.wenxuecity.com/media/1246584107.xml' /> - The program (yykdpost.hta) being written in vbscript and HTML, feel free to view the source code and enhance it.