Building on the Quick Start example, you can change the images displayed for the icons by using the icons option and specifying images in the css styles.
Drop down and copy script to paste in <head> section
Script |
Copy Code |
---|---|
<script id="scriptInit" type="text/javascript"> $(document).ready(function () { $('#ratingDiv').wijrating({ ratingMode: 'single', iconWidth: 150, iconHeight: 150, icons: { iconsClass: ['wijrating-icon-normal-1', 'wijrating-icon-normal-2', 'wijrating-icon-normal-3', 'wijrating-icon-normal-4', 'wijrating-icon-normal-5'], ratedIconsClass: ['wijrating-icon-rated-1', 'wijrating-icon-rated-2', 'wijrating-icon-rated-3', 'wijrating-icon-rated-4', 'wijrating-icon-rated-5'], hoverIconsClass: ['wijmo-wijrating-hover-1', 'wijmo-wijrating-hover-2', 'wijmo-wijrating-hover-3', 'wijmo-wijrating-hover-4', 'wijmo-wijrating-hover-5'] } }); }); </script> |
Drop down and copy styles to paste in <head> section
Script |
Copy Code |
---|---|
<style type="text/css"> .wijrating-icon-normal-1 { background: transparent url("http://cdn.wijmo.com/images/chrome.png") no-repeat !important; opacity: 0.50; } .wijrating-icon-hover-1{ background: transparent url("http://cdn.wijmo.com/images/chrome.png") no-repeat !important; opacity: 1; } .wijrating-icon-rated-1 { background: transparent url("http://cdn.wijmo.com/images/chrome.png") no-repeat !important; opacity: 1; } .wijrating-icon-normal-2 { background: transparent url("http://cdn.wijmo.com/images/firefox.png") no-repeat !important; opacity: 0.50; } .wijrating-icon-hover-2{ background: transparent url("http://cdn.wijmo.com/images/firefox.png") no-repeat !important; opacity: 1; } .wijrating-icon-rated-2 { background: transparent url("http://cdn.wijmo.com/images/firefox.png") no-repeat !important; opacity: 1; } .wijrating-icon-normal-3 { background: transparent url("http://cdn.wijmo.com/images/ie.png") no-repeat !important; opacity: 0.50; } .wijrating-icon-hover-3{ background: transparent url("http://cdn.wijmo.com/images/ie.png") no-repeat !important; opacity: 1; } .wijrating-icon-rated-3 { background: transparent url("http://cdn.wijmo.com/images/ie.png") no-repeat !important; opacity: 1; } .wijrating-icon-normal-4 { background: transparent url("http://cdn.wijmo.com/images/opera.png") no-repeat !important; opacity: 0.50; } .wijrating-icon-hover-4{ background: transparent url("http://cdn.wijmo.com/images/opera.png") no-repeat !important; opacity: 1; } .wijrating-icon-rated-4 { background: transparent url("http://cdn.wijmo.com/images/opera.png") no-repeat !important; opacity: 1; } .wijrating-icon-normal-5 { background: transparent url("http://cdn.wijmo.com/images/safari.png") no-repeat !important; opacity: 0.50; } .wijrating-icon-hover-5{ background: transparent url("http://cdn.wijmo.com/images/safari.png") no-repeat !important; opacity: 1; } .wijrating-icon-rated-5 { background: transparent url("http://cdn.wijmo.com/images/safari.png") no-repeat !important; opacity: 1; } </style> |
Drop down and copy script to paste in <head> section
Script |
Copy Code |
---|---|
<div id="ratingDiv"></div> |