i have made a js popup box to verify customers age before enter to a category.
i made a age-verification.js
file with this code included, in my templat js/
folder:
var agePrompt=prompt("What is your age?");
if (agePrompt>=18) alert('Welcome!')
else {
alert('Sorry! Come back in a few years!')
document.location=" ";//link if not 18
}
and i added this XML code:
<reference name="head">
<action method="addItem">
<type>skin_js</type>
<name>js/age-verification.js</name>
</action>
</reference>
to
Admin -> Catalog -> Manage Categories -> {Selected category} -> Custo Design -> Custom Layout Update
now i want to add some css styles to my js popup window.
how to do that? (with details please)