java experts,
i am myself a template developer, i offer free and premium template, some users when download our free templates they remove the footer link...so i prepared some scripts and now they dont remove footer link by any way except they do add some css properties to that existing id.
SO my question is here:
suppose below is my template:
<html>
<head>
</head>
<body>
<div id='copyright'/>
<style>
#copyright{font-size:10px;position:relative;display:block;}
</style>
</body>
</html>
As you see the above #copyright holds 3 css properties
1:font-size:10px;
2:position:relative;
3:display:block
Now i want that if a user try to add extra properties to that id, then the page should be redirect to xyz.com ..got it ?
Lets take example: suppose the user when download the template he add float:right property to the existing id like this:
<style>
#copyright{float;right;font-size:10px;position:relative;display:block;}
</style>
now the page should be redirected to xyz.com because one extra css property added to the id...it means the id #copyright should only keep my own set of properties, if added any other then the page should be redirect.
Summary:
i have a template i set my own style for id #copyright, i want that if users add extra css tag/properties to the same id #copyright, then the page should be redirect.
example of script, its idea in my mind. it should be some like that
if <id copyright> has only these list of properties
(
#copyright
{float;right;
font-size:10px;
position:relative;
display:block;}
{
// do nothing
}
else
{
window.location.replace("http://example.com");
}
I hope someone will make script for me like above idea, where i add my own css properties for id #copyright.