Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help with coding -  basic web development

Posted on 2013-12-30
2
Medium Priority
?
379 Views
Last Modified: 2014-01-02
See the example here:

http://www.ministryideaz.com/New-World-Translation-Reference-Edition-cover-p/bilar.htm

Waaaay at the bottom of the screen is a widget for chat.

This is based on the following HTML which is included in the template for my website:

<!--START Chat Widget -->
<!--If you already have jquery on the page you don't need to insert this script tag-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>

<link href="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_191.css" media="screen" rel="stylesheet" type="text/css" />
<!--If you already have fancybox on the page this script tag should be omitted-->
<script src="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_libraries_191.js" type="text/javascript"></script>

                <script>
                        
                        // ********************************************************************************
                        // This needs to be placed in the document body where you want the widget to render
                        // ********************************************************************************
                        
                        new DESK.Widget({ 
                                version: 1, 
                                site: 'ministryideaz.desk.com', 
                                port: '80', 
                                type: 'chat', 
                                displayMode: 1,  //0 for popup, 1 for lightbox
                                features: {  
                                        offerAlways: false, 
                                        offerAgentsOnline: false, 
                                        offerRoutingAgentsAvailable: true,  
                                        offerEmailIfChatUnavailable: true 
                                },  
                                fields: { 
                                        ticket: { 
                                                // desc: &#x27;&#x27;,
                                // labels_new: &#x27;&#x27;,
                                // priority: &#x27;&#x27;,
                                // subject: &#x27;&#x27;,
                                // custom_order_number: &#x27;&#x27;,
                                // custom_topic: &#x27;&#x27;
                                        }, 
                                        interaction: { 
                                                // email: &#x27;&#x27;,
                                // name: &#x27;&#x27;
                                        }, 
                                        chat: { 
                                                //subject: '' 
                                        }, 
                                        customer: { 
                                                // company: &#x27;&#x27;,
                                // desc: &#x27;&#x27;,
                                // first_name: &#x27;&#x27;,
                                // last_name: &#x27;&#x27;,
                                // locale_code: &#x27;&#x27;,
                                // title: &#x27;&#x27;,
                                // custom_orderid: &#x27;&#x27;
                                        } 
                                } 
                        }).render();  
                        
                        
                    var $ = jQuery.noConflict();
      
                        
                    $(document).ready(function() { 
                    
						$("#triggeremail").click(function() { $('#assistly-widget-1 a').click(); }); 
						setTimeout(function() {
						if ($(".a-desk-widget-chat").prop('href').indexOf("widget/emails/new") > -1){$(".a-assistly-widget-chat").hide();$("#assistly-widget-email").show();
						}
						else{$("#assistly-widget-1").show()
						}

													  }, 1000);

					 console.log($(".a-desk-widget-chat")); });
					 
					 
                        
                </script>
                
                
                
                
               <style>
				#assistly-widget-1 {
					display:none;
				}
				.assistly-widget a {
					min-height: 40px !important;
					width: 226px !important;
					background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/online-csupport.png') !important;
					background-position: 0px 0px !important;
				}

				.assistly-widget a:hover {
					min-height: 40px !important;
					width: 226px !important;
					background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/online-csupport-hover.png') !important;
					background-position: 0px 0px !important;
				}

				.hidden {
					display:none;
				}
				
				#triggeremail {
				min-height: 40px !important;
			    width: 226px !important;
				background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/offline-csupport.png') !important;
				background-position: 0px 0px !important;
				display: block !important;
				}
				
				#triggeremail:hover {
				min-height: 40px !important;
			    width: 226px !important;
				background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/offline-csupport-hover.png') !important;
				background-position: 0px 0px !important;
				display: block !important;
				cursor: pointer;
				}
				

				</style>
				
				
				
				<span class="assistly-widget hidden" id="assistly-widget-email" >
		<span id="triggeremail"></span>

				</span>

<!—END Chat Widget -->

Open in new window


What I would like to do is make this hover at the bottom of the page. I'm not sure if "hover" is the correct term. The idea is you shouldn't need to scroll to the bottom to see it. It should always be there.

Also I would prefer it to be bottom-right instead of bottom-left.

Any suggestions?
0
Comment
Question by:gregholl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
DamjanDemsar earned 2000 total points
ID: 39747696
add
position:fixed;
bottom: 5px;
right: 5px;

to the #trigeremail css in bilar.htm (line 1545)
0
 
LVL 1

Author Closing Comment

by:gregholl
ID: 39750885
You are an absolute genius! hehe. Thanks so much!
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question