Mouseover at page rendering

If a mouseover is applied at page rendering, how do I find it, and disable it?
LVL 2
BILL CarlisleAPEX DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
read the code.
0
RobOwner (Aidellio)Commented:
I suggest you start here: http://sscce.org/

We really do want to help you out here but you haven't given us much to go on.  As a start you would need to post the rendered html or a link to the page in question.

What you're looking for is code that sets the mouseover event, assuming that is in face the event being fired.  It could be anywhere.. literally.. anywhere in the page.  In a tag, in an external script or within a script code somewhere on the page...

I think you need to gather a bit more info and try again.
0
leakim971PluritechnicianCommented:
@bcarlis, I hope my previous comment was not considered as aggressive else I apologize
you need to read your code, seach for mouseover, hover, mouseleave, mouse, over
Javascript and CSS sources code too.

you can try a texteditor which can locate the word too like ultraedit
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

BILL CarlisleAPEX DeveloperAuthor Commented:
I found it.. but was put on something else.. so I won't be looking at it right now..
I just want to make it unresponsive to click or mouseover...
If I put readonly it doesn't respond to dynamic actions..
Thank you for the help.. I was thinking there was something else controlling it.. wasn't thinking..


/*
 ### jQuery Star Rating Plugin v3.13 - 2009-03-26 ###
 * Home: http://www.fyneworks.com/jquery/star-rating/
 * Code: http://code.google.com/p/jquery-star-rating-plugin/
 *
	* Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 ###
*/
if(window.jQuery){(function(a){if(a.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)}catch(b){}}a.fn.rating=function(d){if(this.length==0){return this}if(typeof arguments[0]=="string"){if(this.length>1){var c=arguments;return this.each(function(){a.fn.rating.apply(a(this),c)})}a.fn.rating[arguments[0]].apply(this,a.makeArray(arguments).slice(1)||[]);return this}var d=a.extend({},a.fn.rating.options,d||{});a.fn.rating.calls++;this.not(".star-rating-applied").addClass("star-rating-applied").each(function(){var g,l=a(this);var e=(this.name||"unnamed-rating").replace(/\[|\]/g,"_").replace(/^\_+|\_+$/g,"");var f=a(this.form||document.body);var k=f.data("rating");if(!k||k.call!=a.fn.rating.calls){k={count:0,call:a.fn.rating.calls}}var n=k[e];if(n){g=n.data("rating")}if(n&&g){g.count++}else{g=a.extend({},d||{},(a.metadata?l.metadata():(a.meta?l.data():null))||{},{count:0,stars:[],inputs:[]});g.serial=k.count++;n=a('<span class="star-rating-control"/>');l.before(n);n.addClass("rating-to-be-drawn");if(l.attr("disabled")){g.readOnly=true}n.append(g.cancel=a('<div class="rating-cancel"><a title="'+g.cancel+'">'+g.cancelValue+"</a></div>").mouseover(function(){a(this).rating("drain");a(this).addClass("star-rating-hover")}).mouseout(function(){a(this).rating("draw");a(this).removeClass("star-rating-hover")}).click(function(){a(this).rating("select")}).data("rating",g))}var j=a('<div class="star-rating rater-'+g.serial+'"><a title="'+(this.title||this.value)+'">'+this.value+"</a></div>");n.append(j);if(this.id){j.attr("id",this.id)}if(this.className){j.addClass(this.className)}if(g.half){g.split=2}if(typeof g.split=="number"&&g.split>0){var i=(a.fn.width?j.width():0)||g.starWidth;var h=(g.count%g.split),m=Math.floor(i/g.split);j.width(m).find("a").css({"margin-left":"-"+(h*m)+"px"})}if(g.readOnly){j.addClass("star-rating-readonly")}else{j.addClass("star-rating-live").mouseover(function(){a(this).rating("fill");a(this).rating("focus")}).mouseout(function(){a(this).rating("draw");a(this).rating("blur")}).click(function(){a(this).rating("select")})}if(this.checked){g.current=j}l.hide();l.change(function(){a(this).rating("select")});j.data("rating.input",l.data("rating.star",j));g.stars[g.stars.length]=j[0];g.inputs[g.inputs.length]=l[0];g.rater=k[e]=n;g.context=f;l.data("rating",g);n.data("rating",g);j.data("rating",g);f.data("rating",k)});a(".rating-to-be-drawn").rating("draw").removeClass("rating-to-be-drawn");return this};a.extend(a.fn.rating,{calls:0,focus:function(){var d=this.data("rating");if(!d){return this}if(!d.focus){return this}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);if(d.focus){d.focus.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])}},blur:function(){var d=this.data("rating");if(!d){return this}if(!d.blur){return this}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);if(d.blur){d.blur.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])}},fill:function(){var c=this.data("rating");if(!c){return this}if(c.readOnly){return}this.rating("drain");this.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-hover")},drain:function(){var c=this.data("rating");if(!c){return this}if(c.readOnly){return}c.rater.children().filter(".rater-"+c.serial).removeClass("star-rating-on").removeClass("star-rating-hover")},draw:function(){var c=this.data("rating");if(!c){return this}this.rating("drain");if(c.current){c.current.data("rating.input").attr("checked","checked");c.current.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-on")}else{a(c.inputs).removeAttr("checked")}c.cancel[c.readOnly||c.required?"hide":"show"]();this.siblings()[c.readOnly?"addClass":"removeClass"]("star-rating-readonly")},select:function(d,f){var e=this.data("rating");if(!e){return this}if(e.readOnly){return}e.current=null;if(typeof d!="undefined"){if(typeof d=="number"){return a(e.stars[d]).rating("select",undefined,f)}if(typeof d=="string"){a.each(e.stars,function(){if(a(this).data("rating.input").val()==d){a(this).rating("select",undefined,f)}})}}else{e.current=this[0].tagName=="INPUT"?this.data("rating.star"):(this.is(".rater-"+e.serial)?this:null)}this.data("rating",e);this.rating("draw");var c=a(e.current?e.current.data("rating.input"):null);if((f||f==undefined)&&e.callback){e.callback.apply(c[0],[c.val(),a("a",e.current)[0]])}},readOnly:function(c,d){var e=this.data("rating");if(!e){return this}e.readOnly=c||c==undefined?true:false;if(d){a(e.inputs).attr("disabled","disabled")}else{a(e.inputs).removeAttr("disabled")}this.data("rating",e);this.rating("draw")},disable:function(){this.rating("readOnly",true,true)},enable:function(){this.rating("readOnly",false,false)}});a.fn.rating.options={cancel:"Cancel Rating",cancelValue:"",split:0,starWidth:16};a(function(){a("input[type=radio].star").rating()})})(apex.jQuery)};

Open in new window

0
leakim971PluritechnicianCommented:
Using CSS you can hide the element you don't want the mouse apply

.selectorClass {
   display:none;
}

Open in new window


If you don't know which element? Hide the full document :
body {
   display:none;
}

Open in new window


using jQuery, you can reveal the element (or the full document) quickly with :

//$(document).ready(function() {
$(window).load(function() { // will wait loading of picture too for example
    $("body").show(); // the full document have been hidden using CSS, we reveal it once the page and element are loaded now
})

Open in new window

0
BILL CarlisleAPEX DeveloperAuthor Commented:
I still need the user to be able to see it but not click on it..

It is a Start rating that allows you to click on a star that selects the previous stars in the rating.. but 2 of the 5 we are using are calculated so we don't want them changeable..
except by onChange of 2 other items on the page..

I know how to hide/show items...
0
leakim971PluritechnicianCommented:
ok so what about something like the following at the end of your body :
<div style="width:100%;height:100%;position:absolute;z-index:10000" id="useful_ID_to_remove_me"></div>

Open in new window

0
RobOwner (Aidellio)Commented:
Add this code to remove the mouse over for the offending elements:
$(function() {
$("div.star-rating").off("mouseover");
$("div.rating-cancel").off("mouseover");
});

Open in new window

0
BILL CarlisleAPEX DeveloperAuthor Commented:
tagit --- yes.. I had just got it with ..
the mouseover wasn't enough, it had click event also and who knows what else

$('#P11_TOTAL_SPEND_RATING div.star-rating-live').unbind();
$('#P11_TOTAL_SPEND_RATING div.rating-cancel').unbind();

Open in new window


leakim971 -- looks like u were still thinking I wanted to hide?
0
leakim971PluritechnicianCommented:
leakim971 -- looks like u were still thinking I wanted to hide?

Just change the opacity to zero and you''re done

<div style="width:100%;height:100%;position:absolute;z-index:10000;opacity:0;top:0;left:0;" id="useful_ID_to_remove_me"></div>
0
RobOwner (Aidellio)Commented:
So remove the click event as well... sorry a bit confused... above you said

I just want to make it unresponsive to click or mouseover...

you do that like this:

$(function() {
$("div.star-rating").off("mouseover");
$("div.rating-cancel").off("mouseover");
$("div.star-rating").off("click");
$("div.rating-cancel").off("click");
});

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BILL CarlisleAPEX DeveloperAuthor Commented:
Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.