伙计我有一个javascript文件,其中滑块获取文本和图像。我想修改此javascript文件的内容并根据用户想要显示更改文本。所以我需要修改这个javascript文件的内容。滑块的所有内容都放在js文件中的对象中。对象如下:
slides:[{ title:"Imported multi-ocassional sweets",desc:"Birthday cakes, marriage cakes, office party cakes.",contentType:"image",content:"",interval:-1,effect:{ effectType:"Random"},pauseOnMouseOver:-1,src:"dataimages/Chrysanthemum.jpg",thumbSrc:"dataimages/Chrysanthemum-th.jpg",largeSrc:"dataimages/Chrysanthemum-org.jpg"},{ title:"Deliver Happiness",desc:"Buy Your favorite Sweets, Chocolates, Gift Hampers etc now online.",contentType:"image",content:"",interval:-1,effect:{ effectType:"Random"},pauseOnMouseOver:-1,src:"dataimages/Hydrangeas.jpg",thumbSrc:"dataimages/Hydrangeas-th.jpg",largeSrc:"dataimages/Hydrangeas-org.jpg"},{ title:"Mansha Sweets Now Online",desc:"Shop at Your Convenience any where and every where from Your laptop, Mobile and tablet.",contentType:"image",content:"",interval:-1,effect:{ effectType:"Random"},pauseOnMouseOver:-1,src:"dataimages/Koala.jpg",thumbSrc:"dataimages/Koala-th.jpg",largeSrc:"dataimages/Koala-org.jpg"},{ title:"Over 500 varieties of sweets",desc:"Order Wide variety of sweets while staying at home.",contentType:"image",content:"",interval:-1,effect:{ effectType:"Random"},pauseOnMouseOver:-1,src:"dataimages/Tulips.jpg",thumbSrc:"dataimages/Tulips-th.jpg",largeSrc:"dataimages/Tulips-org.jpg"}]}
这只是js文件的一部分,其中包含了slider的对象。我在基于ac#的网站中使用这个滑块。有什么方法可以为用户提供CMS,这样他就可以修改滑块的文本和图像了管理员。谢谢。