Announcement

Collapse
No announcement yet.

Pop up window/messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pop up window/messages

    djblalock, you seem to be very good with these pop up jobbo's. Maybe you can help me with a wee problem.

    I have a client runs an online store. She wants to be able to popup a small image asking the person browsing the site if they want help. However, its not as simple as that. There has to be a degree of logic behind it.

    She wants the pop-up to only display if there is a member of her team available to answer the questions. I think I can manage this bit in PHP and by setting up a private 'chat room' on the site. But she also wants a time-out and count down on the pop-up! ie this pop-up will close in 20 seconds and count down, were it closes itself. How would I manage that?

  • #2
    I'm currently on my phone so can't do much of a code ATM,

    But I can look at it later today,

    I can do a timed image, I believe - but I'm not good enough at PHP to do a chat script like that.

    There may also be free chat scripts that might can do that all already.

    Comment


    • #3
      Here is the best (simple) one I have for you,

      3000 is for 3 seconds
      Code:
      <script type="text/javascript">window.setTimeout("document.getElementById('IMG ID').style.display='none';", 3000); </script>
      <img id="IMG ID" src="IMAGE URL">
      And you could use my floating image code in the header of their store...

      So if you did this, the basic code would be

      Code:
      <a href="CHAT LINK HERE" id="lcinitimg" style="right:500px;bottom:100px;position:fixed;" target="_new""><script type="text/javascript">window.setTimeout("document.getElementById('IMG ID').style.display='none';", 3000); </script>
      <img id="IMG ID" src="IMAGE URL FOR INVITE"> </a>
      -That should work as a combination of the 2 codes

      And you'd just have to add an X with the function of temporarily hiding the popup - which would still show the message on every visit to any of the pages it is on...


      As far as PHP, that's where you would have to take over But like I said, there may be scripts available that can do exactly what they want, easily done, support multiple operators, show an email form when unavailable, support a "Chat" button anywhere on a page (like RSP), send invites, and even more features they may like.... You could show them this script (free), which I think has a few chat invites already made, and can support custom ones.

      The advantage to some of the already-made scripts, is that the operator could monitor the visitors and manually send them a chat invite with the click of a button - so that the message is only shown when they are able to chat - unless their is a "Chat Now" button on the page.

      Comment


      • #4
        djblalock has anyone ever told you your a genius!

        That chat script is exactly what I’m looking for!! Thanks so much

        Comment


        • #5
          Originally posted by clivejo View Post
          djblalock has anyone ever told you your a genius!

          That chat script is exactly what I’m looking for!! Thanks so much
          You're welcome!

          And PS: I got the sidebar I told you about earlier fixed, thanks to doneritehosting! Don't know what I would have done without his help

          Comment


          • #6
            donerite is a very helpful guy indeed! Certainly learned a trick or two from him!

            Comment

            Working...
            X