Capture code here: press Select All then COPY the contents
Before publishing change gEMDIR to GEMDIR or the script will not load properly!
I have made notes in codes below and it will effect functionality!
Use the Select All choice above to copy code!
(Right click, save target as)
|
Using Trellix or CSB to build your site:
Place this script into an Insert > HTML (webgem in Trellix)
Adjust code: change ^gEMDIR/ to ^GEMDIR/
Then insert photo file into Webcomponents (Gem files )
Make sure capitalization is same as you used in the code (step 2)!
Example: calendar.gif is not the same as Calendar.gif or CALENDAR.gif. The images in the code must match the true image names (which can NOT have spaces or symbols in them.)
NOT using Trellix or CSB to build your site:
Place this script into your web page.
REMOVE the ^GEMDIR/ from code.
Upload your image directly to your site using FTP program.
Change ORANGE items to your quote.
Change BLUE item to your image if you want to use one.
Note: If you do not want to use an image, then REMOVE <img src="^GEMDIR/calendar.gif"> from the script.
Change GREEN item to your header.
<script>
<!--
/*
QUOTE of the MONTH script
Can be used for tips, sales, specials, themes, etc.
Samantha Conway
*/
var today_obj=new Date()
var today_month=today_obj.getMonth()+1
var tips=new Array()
//Update Header above the quote and and input an image if you want one
var tiptitle='<img src="^GEMDIR/calendar.gif"> <b>Quote of the month:</b><br>'
//Input your quotes. One for each month
tips[1]='Type January here'
tips[2]='Type February here'
tips[3]='Type March here'
tips[4]='Type April here'
tips[5]='Type May here'
tips[6]='Type June here'
tips[7]='Type July here'
tips[8]='Type August here'
tips[9]='Type September here'
tips[10]='Type October here'
tips[11]='Type November here'
tips[12]='Type December here'
document.write(tiptitle)
document.write(tips[today_month])
//-->
</script>
|