Working jQuery UI Theme Switcher Widget without hotlinking

by mgreuel 12. April 2011 13:18

Since the jQuery disabled hotlinking, the default implementation of the Theme Switcher Widget doesn't work anymore. To get it running on your webspace, you need to download the js and images and change alle the links. That seemed to cumbersome for lazy dev, so I asked google for another solution. Surpringsingly, I did not found much, but there was one blog entry which picked up the idea. Although it hat some errors and was still hotlinking the css files, I could reuse it with some changes.

The attached zip file contains the js file and all necessary images. You can set the baseUrl, path to the images and the CDN which should be used in the settings, e.g.

 

cssPrefix : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/", 
imgPrefix : baseUrl + "Images/Themeroller/theme_90_", 
imageLocation : baseUrl + "Images/Themeroller/",

 

themeswitcher.zip (163.96 kb)

Tags: , ,

General

Pingbacks and trackbacks (1)+

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading