inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Jan 3, 2006 6:37:47 GMT -8
Description: The preview of the message icons when you post is always the default one, even if you change the images. example: clickSo what this code does is show your custom image instead of the default image in the preview. Instructions: Make sure all the custom message icons are in ONE folder on your host. Secondly make sure that the names of your icons are: xx thumbup thumbdown exclamation question lamp smiley angry cheesy laugh sad wink
xx is the default icon, and I don't think I have to tell you the rest (kind of obvious). Now time for the code: <script type='text/javascript'> //Change message icon preview //Do not redistribute this code without the creator's permission //Created by CrAzY_J
var BaseUrl = 'myhost.com/mysubfolder/'; var ImageType = '.gif';
if( document.postForm ) { document.postForm.icon.onchange = function() { document.images.iconImage.src = BaseUrl+document.postForm.icon.options[document.postForm.icon.selectedIndex].value+ImageType; } document.postForm.icon.onkeyup = function() { document.images.iconImage.src = BaseUrl+document.postForm.icon.options[document.postForm.icon.selectedIndex].value+ImageType; } } </script>
Global Footers. The red part is the link to the folder all your icons is on. Orange part is the icon extension (gif, jpeg, png)
|
|