Current location: Hot Scripts Forums » Programming Languages » PHP » Trying to get Area and Script to work code

Trying to get Area and Script to work code

Reply
  #1 (permalink)  
Old
New Member
 
Join Date: Feb 2013
Location: WV
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Trying to get Area and Script to work code

Here is what a need to do and I have all the coding in place except the part to get the script to work

We have a website and have a live chat icon we added to our header graphic. The graphic is static and will always say we are online to chat which is fine.

We have mapped all the clickable spots and they all work perfect except the chat section because it runs a script instead of linking to a site.

When we use the standard href codeing we error out because it is a script not a direct link
Here is the current code for that section

<div id="minHeight"></div>
<div id="container_home">
<div id="header"><img src="images/header.png" border="0" usemap="#Map" />
<map name="Map" id="Map">

<!-- Begin OCC code for Support department -->

<area shape="rect" coords="530,140,650,190"
<a href="http://www.asplayzone.com" alt="facebook" />

<!-- End OCC Compact HTML/Mobile code -->

<area shape="rect" coords="676,131,715,172" href="http://www.facebook.com/AandSPlayZone" alt="facebook" />
<area shape="rect" coords="724,132,763,170" href="http://www.twitter.com/asplayzone" alt="twitter" />
<area shape="rect" coords="773,132,810,170" href="https://plus.google.com/116300476202094253542/posts" alt="google+" />
<area shape="rect" coords="676,178,715,216" href="http://www.asplayzone.com/wpblog">
<area shape="rect" coords="725,177,764,217" href="http://www.bouncehousedaytoncincinnati.blogspot.com">
<area shape="rect" coords="773,178,811,217" href="http://www.youtube.com/user/ASPLAYZONE11?feature=mhee">
</map>

The code that needs to go into the OCC section is this

<!-- Begin OCC code for Customer Service department -->

<script type="text/javascript">
(function() {
var occ = document.createElement('script'); occ.type = 'text/javascript'; occ.async = true;
occ.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.onlinechatcenters.com/code-1111-1111.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(occ, s);
})();
</script>

<!-- End OCC code -->

I have attempted every possible way to insert this code and have researched for days on trying to find a possible solution, and at this point I am getting so upset that something so easy seems so hard.

Can you point me to a location where I can study this or to a location where I can find a programmer that knows how to is willing to show me how to fix it.
Reply With Quote

Featured Marketplace Scripts (view more)

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PTC Script Lanshire Job Offers & Assistance 2 11-20-08 02:18 PM


All times are GMT -5. The time now is 08:43 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.