Phpbb3 • Administration • BBCodes • Forum Nuts and Bolts

It is currently Sat Mar 20, 2010 9:50 am

All times are UTC




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:25 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
It seams to be working for me on your board. :BG:

~FN~

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:28 pm 
Offline

Joined: Wed Sep 23, 2009 5:13 pm
Posts: 31
hosted on:: FreeForums.org
It's not... I see the picture 5-6 cm on left side from mouse :cry:


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:29 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
Ok now I'm confused... I thought that's where you wanted it?

Where exactly do you want the image ?

If you wanted it to the right side of the mouse you could have used the old code right?

~FN~

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:35 pm 
Offline

Joined: Wed Sep 23, 2009 5:13 pm
Posts: 31
hosted on:: FreeForums.org
I want the picture on right side of mouse (1-2 mm from the mouse) :oops:
But standart HTML Replacement code (old code) put the picture on left side of mouse, I think because of hebrew language pack...


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:41 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
Copy this image, and use paint to put your cursor exactly where you want it . :P

Then I will be sure of its exact placement :D
Image

~FN~

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:49 pm 
Offline

Joined: Wed Sep 23, 2009 5:13 pm
Posts: 31
hosted on:: FreeForums.org
Here
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:52 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
Ok, hang on we can do that no problem :D

~FN~

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 5:59 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
Replace your Html Replacement code with this:

~FN~


Code:
Code:
<script type="text/javascript">

    /*
    Simple Image Trail script- By JavaScriptKit.com
    Visit http://www.javascriptkit.com for this script and more
    This notice must stay intact
    */

    var trailimage=["{URL}", {NUMBER1}, {NUMBER2}] //image path, plus width and height
    var offsetfrommouse=[-23,23] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
    var displayduration=0 //duration in seconds image should remain visible. 0 for always.

    if (document.getElementById || document.all)
    document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')

    function gettrailobj(){
    if (document.getElementById)
    return document.getElementById("trailimageid").style
    else if (document.all)
    return document.all.trailimagid.style
    }

    function truebody(){
    return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    function hidetrail(){
    gettrailobj().visibility="hidden"
    document.onmousemove=""

    }

    function followmouse(e){
    var xcoord=offsetfrommouse[0]
    var ycoord=offsetfrommouse[1]
    if (typeof e != "undefined"){
    xcoord+=e.pageX
    ycoord+=e.pageY
    }
    else if (typeof window.event !="undefined"){
    xcoord+=truebody().scrollLeft+event.clientX
    ycoord+=truebody().scrollTop+event.clientY
    }
    var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
    var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
    if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
    gettrailobj().display="none"
    else
    gettrailobj().display=""
    gettrailobj().left=xcoord+"px"
    gettrailobj().top=ycoord+"px"
    }

    document.onmousemove=followmouse

    if (displayduration>0)
    setTimeout("hidetrail()", displayduration*1000)

    </script>

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 6:04 pm 
Offline

Joined: Wed Sep 23, 2009 5:13 pm
Posts: 31
hosted on:: FreeForums.org
see now, without result : http://freeskate.freeforums.org/post18917.html#p18917


Top
 Profile E-mail  
 
 Post subject: Re: Mouse Image BBCode - help
PostPosted: Sat Oct 31, 2009 6:26 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 30, 2008 3:57 am
Posts: 476
Location: USA
hosted on:: Prophpbb
Wow that is odd... It's working great for me in the editor but not in the actual board....

I'm still trying to get this sorted out. I think it may be the phpbb3 board code messing it up.

~FN~


_________________
Image


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Free forum hosting by ProphpBB. Powered by phpBB.
ForumNut