Both CSS and Javascript can be added to a web page in two ways:
CSS contained with a HTML tag
An example of CSS in a link is
<a href="someplace" style="text-decoration:none">
The text-decoration:none tells the browser that there will be no underline with this link.
<a href="YOUR LINK" OnMouseOver="mo1.src='on.gif'" OnMouseOut="mo1.src='off.gif'"><img src="off.gif" border="0" name="mo1"></a>
And the actual link would look like this (don't click on it as it goes no where):
If you have code like this to add to your Page Builder page, then you must use the HTML ADDING method. Copy and paste the javascript code in the HTML CODE box in the ADDONS.
CSS STYLE In HEAD SCRIPT
If, for example, you wish to have all the links on your page with no underlines, then you add the following code to your page in the HEAD SCRIPT
|
--- HEAD SCRIPT BOX ---
<script language="JavaScript"> <!-- Hide from old browsers var NN3 = false; image1= new Image(); image1.src = "off.gif"; image1on = new Image(); image1on.src = "on.gif"; function on3(name) { document[name].src = eval(name + "on.src"); } function off3(name) { document[name].src = eval(name + ".src"); } NN3 = true; function on(name) { if (NN3) on3(name); } function off(name) { if (NN3) off3(name); } // --> </script>
--- PAGE CODE ---
|
And the mouseover would look like this:
As you can plainly see, the Javascript Function using a lot more code to accomplish the same task. But this is not always the case and there will be times when the Function is required.