css - Change list (.li and .ul) to roman numbers on jquery slider -


how change control navigation roman numbers, when add

.evoslider .controlnav ul {    list-style: upper-roman; position: relative;  }  

i double number roman , non roman number beside each other.

filmspecs.com/links.html

you should put roman numbers inside <li> elements, , remove list-style property csss.

i've looked around looks javascript solution (if cannot edit source code). it's bit tricky, i've tested on site , works fine.

so try javascript code:

number.prototype.toroman = function() {     var digits = string(+this).split(""),         key = ["","c","cc","ccc","cd","d","dc","dcc","dccc","cm", "","x","xx","xxx","xl","l","lx","lxx","lxxx","xc","","i","ii","iii","iv","v","vi","vii","viii","ix"],         roman = "",         = 3;      while (i--) roman = (key[+digits.pop() + (i * 10)] || "") + roman;     return array(+digits.join("") + 1).join("m") + roman; }  $(document).ready(function() {     $('.bullets').each(function(index, element) {         element.textcontent = (+element.textcontent).toroman();     }); }); 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -