skip to Main Content

Fun Script for Websites!

Some of these pertain to Point2 Agent, but most will work in any website platform!

In the below instructions, I reference the header template and footer template.   Only Professional/Premium Point2 members will be able to utilize the template of their website and will need to make sure it’s called out through the Advanced Visibility Options.  This code would need to be placed on every page of a standard site.

This is for all you folks that want to dig into your websites.  Have fun!

__________________________________________

RIGHT-CLICK DISABLE – any website 

Don’t want anybody stealing your graphics? Place this code into your header template or footer template. You’ll want to replace the text that appears when someone tries to right click on a graphic or highlighted text.

<SCRIPT language=JavaScript1.2 type=text/javascript>Text to Appear when Someone Right Clicks‘)”)//–>

<!–if (document.all)
document.body.onmousedown=new Function(“if (event.button==2||event.button==3)alert(‘

</SCRIPT>

_____________________________________________

CHANGE HOVER COLOR – any website

You can control what colors appear in text links for your site. Point2 websites will tend to follow the primary and secondary color choices for text links. If you’d rather use different colors, insert this code into your header template or footer template of your website.

<STYLE type=text/css>
<!–
A:visited {color: #003300; text-decoration: underline}
A:link {color: #003300; text-decoration: underline}
A:active {color: #003300; text-decoration: underline}
A:hover {cursor: pointer; color: #000000; text-decoration: none}
//–>
</STYLE>

Here’s the website to check out hex #’s: http://www.december.com/html/spec/color.html

____________________________________

STYLESHEET EFFECT – Point2 Agent Only

This code will allow your web page to be fixed and centered. It won’t expand and contract if the viewer has a smaller or wider monitor.

Place the code in the header template or footer template of your website.

<STYLE type=text/css>
<!–
form {
margin-top: 5px;
background-color : #ffffff;
}


.DesktopDefaultPage { background-color : #c9e4ff; margin-left: auto; margin-right: auto; max-width: 820px; padding-left: expression(document.body.clientWidth > 820 ? (document.body.clientWidth-820)/2 + “px”:0); padding-right: expression(document.body.clientWidth > 820 ? (document.body.clientWidth-820)/2 + “px”:0); } 
 

.DesktopPortalFooterPanel {
background-color : #FFFFFF;
} –>
</STYLE>

NOTE:  In the first section of code, the background-color is the content background in the middle section of the web page. 

In the second section of code, the background-color is the color you see on the left and right sides of the web page. For those that want to get fancy, this can be a color or image. For images, replace the background-color to backgroun-image : url(“YOUR FILE LOCATION URL HERE”);

In the third section of code, the background-color is the footer background color at the bottom of the content section.

The “820” is the width of your web page in pixels. Don’t go over 950 or a viewer with a smaller monitor will have to scroll over to the right to see anything in the right column of your website (or a portion of the right side of the site). I use 950 most of the time.

_______________________________________________

SCROLLING MARQUEE OF TEXT – any website

Use this to have your text message scroll across the screen in your website.

Place this anywhere, just adjust the widths accordingly.

<center><MARQUEE style=”FONT-SIZE: 14pt; COLOR: #607b8b; FONT-FAMILY: Tahoma, Verdana, Sans Serif” width=96% height=30 scroll=”continuous”>Your Text Here</MARQUEE></center>

___________________________________________________

BACKGROUND IMAGE (NOT FIXED) – any website

Place this code in your header template or footer template for a full page background. This is not to be used with the stylesheet effect code. This appears on the whole page and text sets on top of it unless it’s in a table with a colored background or something.

<body background=”YOUR FILE LOCATION URL HERE“>

___________________________________________________

BACKGROUND IMAGE (FIXED) – any website

Place this code in your header template or footer template for a full page background. This is not to be used with the stylesheet effect code. This appears on the whole page and text moves over it leaving the image still while the viewer scrolls down the page.

<STYLE type=text/css>
<!–
body { background-attachment: fixed; background-image: url(
Your Image Location URL Here); background-repeat: no-repeat; background-position: center top}
–>
</STYLE>

______________________________________

ADD THIS SITE TO YOUR FAVORITES! BUTTON – any website

You can add this anywhere in your site. 

<!– AddThis Button BEGIN –>
<SCRIPT type=text/javascript>addthis_pub  = ‘firstcoast’;</SCRIPT>
<A onmouseover=”return addthis_open(this, ”, ‘
WEBSITE URL HERE‘, ‘DESCRIPTION OR TITLE HERE‘)” onclick=”return addthis_sendto()” onmouseout=addthis_close() href=”http://www.addthis.com/bookmark.php”><IMG height=16 alt=”” src=”http://s9.addthis.com/button1-addthis.gif” width=125 border=0></A>
<SCRIPT src=”http://s7.addthis.com/js/152/addthis_widget.js” type=text/javascript></SCRIPT>
 <!– AddThis Button END –>

Back To Top