Help Center Live Community
July 24, 2014, 11:42:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]   Go Down
Author Topic: Custom Links  (Read 4123 times)
Not too much to say...
Offline Offline

Posts: 4

« on: February 20, 2008, 05:53:42 PM »

Hi --

Just installed HCL and find it very impressive.

One thing I'm having trouble with -- I want to use my own links to initiate chat and I want two separate buttons on the page -- one for department one, another for department two.

I can't seem to get both the java functionality (chat-sized window, department selected) without the HCL image, even when I replace the image links.  What happens is my buttons work but the HCL images are behind them -- and no matter if an operator is online, the chat window says operators are busy.

This is what I have:

<div id="econtact2"><a href="javascript:Live.initiate_accept();" class="nb" onmouseover="MM_swapImage('Image4','','images/chat1_over.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/chat1.png" name="Image4" width="62" height="21" border="0" id="Image4" /></a><script type="text/javascript" language="javascript" src=""></script></div>

<div id="econtact3"><a href="javascript:Live.initiate_accept();" class="nb" onmouseover="MM_swapImage('Image5','','images/chat2_over.png',1)" onmouseout="MM_swapImgRestore()"><img src="images/chat2.png" name="Image5" width="62" height="21" border="0" id="Image5" /></a><script type="text/javascript" language="javascript" src=""></script></div>

When I use the HTML links instead of the java links, I get a whole new window instead of the chat-sized window (
) and even when I replace the "
", I still get a prompt asking where the chat should be directed.

Surely others have encountered this -- what's the best fix?

Any ideas would be appreciated!


-- EDIT: I've got a fix, it's not pretty so if anyone has a better idea I'm all ears.  I replaced the two standard images /icons/offline.gif & online.gif with 1x1 transparent gifs.  I then replaced the java code with this:

javascript:Live.launch('chat', '1', '') and javascript:Live.launch('chat', '2', '')

Seems to work just fine.  Have I broken anything?
« Last Edit: February 20, 2008, 06:12:35 PM by johnny_n » Logged
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.159 seconds with 19 queries.

Google visited last this page Yesterday at 10:23:10 AM