setting variables and values in html & js
- by air
i have one js file in that js file i have following variables
var image_path="images";
var style_path="style";
i want to use these variables in html file(s)
like in image statement
<img src="path from js/logo.gif">
or in style sheet statement
<link rel="stylesheet" href="path from js/constant.css" type="text/css" />
Basic idea behind this is: if we change name of image folder or path of image folder we only do change in one JS file not 1000 html files.
same for style sheet.
or any other way to do same in java script or Jquery
Thanks