[REQUEST] x- and y-axis

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[REQUEST] x- and y-axis

Post by neuropass »

Hey Stoker,

I love the x- and y-axis mod. I would love to get that snippet. If you can and whenever you time.

Thanks

Re: [REQUEST] x- and y-axis

Post by Stoker »

Its a funny jquery script. So you need jquery to have this working.
The guide here will be written as if you dont have jquery. Please note that jquery MUST NOT be added more than once!

Open styles/prosilver/template/overall_header.html
Find:

Code: Select all

<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
Add after:

Code: Select all

<script src="{ROOT_PATH}script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$("#phpbb").mousemove(function(e){				
			$("#xleft").html("x-axis: "+e.pageX);
			$("#yright").html("y-axis: "+e.pageY);
	});
});
// ]]>
</script>

Open styles/prosilver/template/overall_footer.html
Find

Code: Select all

</div>

</div>

<div>
	<a id="bottom" name="bottom" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>
Before add:

Code: Select all

<div id="xleft" style="float:left;">x-axis: 0</div><div id="yright" style="float:right;">y-axis: 0</div>
script.zip
You do not have the required permissions to view the files attached to this post.