The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
+2
Bedlam
Michael_vx
6 posters

    this recent topics template dose not stop on mouse hover

    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 3:02

    this recent topics template dose not stop on mouse hover i like to make it stop when mouse hover in the box
    code is
    Code:
                    <!-- BEGIN scrolling_row -->
                
                    <div align="center"><table class="forumline" width="100%" border="2" cellspacing="1" cellpadding="0">
                      <tbody><tr>
                          <td class="catLeft" height="40">
                            <span class="genmed module-title">{L_RECENT_TOPICS}</span>
                          </td>
                      </tr>
                      <tr>
                          <td class="row1" align="center">
            <marquee class="alt1" onmouseover="this.stop()" onmouseout="this.start()" direction="right" scrollamount="2" scrolldelay="60">
                            <!-- BEGIN recent_topic_row -->
                                        <img src="http://i18.servimg.com/u/f18/17/94/72/82/ap_new11.gif" alt="" /><a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a>
                            <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY}
                
                            <!-- BEGIN switch_poster -->
                            <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a>
                            <!-- END switch_poster -->
                            <!-- BEGIN switch_poster_guest -->
                            <!-- END switch_poster_guest -->
                            <!-- END recent_topic_row -->
                                    </marquee>
                                  </td>
                      </tr>
                    </table></div>
                    <!-- END scrolling_row -->
            


    Last edited by Michael_vx on Sun 28 Jun - 13:59; edited 1 time in total (Reason for editing : Topic is solved to me)
    Bedlam
    Bedlam
    Forumember


    Female Posts : 62
    Reputation : 4
    Language : English
    Location : Canada

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Bedlam Thu 25 Jun - 3:49

    What you have :

    Code:
    <marquee class="alt1" onmouseover="this.stop()" onmouseout="this.start()" direction="right" scrollamount="2" scrolldelay="60">

    What it should be:

    Code:
    <marquee class="alt1" onmouseover="this.stop();" onmouseout="this.start();" direction="right" scrollamount="2" scrolldelay="60">


    I think that's what the problem is, that code works on my forum.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 4:02

    how its works
    im talking about it dose not stop scrolling on mouse hover
    Shocked
    Bedlam
    Bedlam
    Forumember


    Female Posts : 62
    Reputation : 4
    Language : English
    Location : Canada

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Bedlam Thu 25 Jun - 4:21

    What browser are you using? The code works for Chrome, but I noticed it doesn't seem to work on firefox etc (but I rarely test for that cause I loathe firefox so LOL)

    Idk what to tell you, hopefully someone comes with a code that works for firefox.
    I've tried using jQuery in the widgets but that doesn't work either.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by JScript Thu 25 Jun - 4:31

    @Michael_vx
    Have you made any recent changes on the template?
    What are browser uses?

    If you give us the address of your forum so we can see if it has any JavaScript error, everything will be easier to solve!

    JS
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 10:31

    What are browser uses?
    Fire Fox yes
    and i didnt know its works on Chrome
    how to make it work on the Fire Fox then
    Have you made any recent changes on the template?
    its same as i find it so no changes from my side
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by JScript Thu 25 Jun - 13:02

    @Michael_vx

    I'll repeat:
    JScript wrote:If you give us the address of your forum so we can see if it has any JavaScript error, everything will be easier to solve!

    JS
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Thu 25 Jun - 14:12

    I think that your problem is missing attribute id. Replace your code with the following code:
    Code:
                    <!-- BEGIN scrolling_row -->
             
                    <div align="center"><table class="forumline" width="100%" border="2" cellspacing="1" cellpadding="0">
                      <tbody><tr>
                          <td class="catLeft" height="40">
                            <span class="genmed module-title">{L_RECENT_TOPICS}</span>
                          </td>
                      </tr>
                      <tr>
                          <td class="row1" align="center">
            <marquee id="comments_scroll_container" class="alt1" onmouseover="this.stop()" onmouseout="this.start()" direction="right" scrollamount="2" scrolldelay="60">
                            <!-- BEGIN recent_topic_row -->
                                        <img src="http://i18.servimg.com/u/f18/17/94/72/82/ap_new11.gif" alt="" /><a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a>
                            <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY}
             
                            <!-- BEGIN switch_poster -->
                            <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a>
                            <!-- END switch_poster -->
                            <!-- BEGIN switch_poster_guest -->
                            <!-- END switch_poster_guest -->
                            <!-- END recent_topic_row -->
                                    </marquee>
                                  </td>
                      </tr>
                    </table></div>
                    <!-- END scrolling_row -->
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 15:16

    @JScript
    here a test forum link i use the template on
    http://micsoft-test.forummotion.com

    VX
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by JScript Thu 25 Jun - 20:54

    @Michael_vx

    1- You tested the tip from our friend @Zzbaivong?
    2- Unfortunately a test forum is not consistent with the forum you use, unless it is an identical copy!

    Your official forum may have errors that prevent various things work as they should...

    JS
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Thu 25 Jun - 21:37

    Replace your code with the following code:
    Code:
    <!-- BEGIN scrolling_row -->
    <div align="center">
        <table class="forumline" width="100%" border="2" cellspacing="1" cellpadding="0">
            <tbody>
                <tr>
                    <td class="catLeft" height="40">
                        <span class="genmed module-title">{L_RECENT_TOPICS}</span>
                    </td>
                </tr>
                <tr>
                    <td class="row1" align="center">
                        <marquee class="alt1" onmouseover="this.stop()" onmouseout="this.start()" direction="right" scrollamount="2" scrolldelay="60" dir="ltr">
                            <!-- BEGIN recent_topic_row -->
                            <img src="http://i18.servimg.com/u/f18/17/94/72/82/ap_new11.gif" alt="" />
                            <a href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a>
                            <img src="{ICON_TIME}" alt="" /> {scrolling_row.recent_topic_row.S_POSTTIME} {BY}&nbsp;
                            <!-- BEGIN switch_poster -->
                            <a href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a>
                            <!-- END switch_poster -->
                            <!-- BEGIN switch_poster_guest -->
                            {scrolling_row.recent_topic_row.switch_poster_guest.S_POSTER}
                            <!-- END switch_poster_guest -->
                            <!-- END recent_topic_row -->
                        </marquee>
                    </td>
                </tr>
        </table>
    </div>
    <!-- END scrolling_row -->
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 21:42

    my official forum is MyBB not any related to forumotion
    this Script not for me its for some people facing this non stop when hover for firefox users as i find out so at least lets find why its not working on firefox im thinking of something but i cannot do it now i have a bad stomich my belly hurts so much that i cannot stand it
    Edit
    Zzbaivong
    its seems that still wont work
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Thu 25 Jun - 21:51

    Your Firefox browser version?
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Ange Tuteur Thu 25 Jun - 22:55

    The <marquee> tag is a non-standard, so it's functionality is sketchy across different browsers. Here's a fix that should work on new versions of Firefox :

    Code:
                    <!-- BEGIN scrolling_row -->
             
                    <div align="center"><table class="forumline" width="100%" border="2" cellspacing="1" cellpadding="0">
                      <tbody><tr>
                          <td class="catLeft" height="40">
                            <span class="genmed module-title">{L_RECENT_TOPICS}</span>
                          </td>
                      </tr>
                      <tr>
                          <td class="row1" align="center">
            <marquee class="alt1" onmouseover="this.setAttribute('scrollamount', '0')" onmouseout="this.setAttribute('scrollamount', '2')" direction="right" scrollamount="2" scrolldelay="60">
                            <!-- BEGIN recent_topic_row -->
                                        <img src="http://i18.servimg.com/u/f18/17/94/72/82/ap_new11.gif" alt="" /><a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a>
                            <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY}
             
                            <!-- BEGIN switch_poster -->
                            <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a>
                            <!-- END switch_poster -->
                            <!-- BEGIN switch_poster_guest -->
                            <!-- END switch_poster_guest -->
                            <!-- END recent_topic_row -->
                                    </marquee>
                                  </td>
                      </tr>
                    </table></div>
                    <!-- END scrolling_row -->

    That is :

    - Replace stop() by setAttribute('scrollamount', '0')
    - Replace start() by setAttribute('scrollamount', '2')
    -- The 2 in the start replacement would be your default scrollamount on the element

    This should work on all browsers, save for <IE9

    The problem mostly occurs on Firefox, so you could identify the useragent via a script and make an Fx only fix, which I did before the Recent Topic widget update.
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Thu 25 Jun - 23:07

    Oh. Thank @Ange Tuteur for useful information. I'm using version 38, maybe that's why I did not detect the error.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Thu 25 Jun - 23:28

    worked like a charm
    thanks a lot Legendary Coder Smile
    im glad you that topic is solved
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Ange Tuteur Fri 26 Jun - 1:00

    Zzbaivong wrote:Oh. Thank @Ange Tuteur for useful information. I'm using version 38, maybe that's why I did not detect the error.
    The bug reared its ugly head shortly after the release of Firefox 27, and has been lurking since then. Not every Firefox user is affected, only a small minority; I was one of those people. grrr!!!!!

    Michael_vx wrote:worked like a charm
    thanks a lot Legendary Coder Smile
    im glad you that topic is solved
    You're welcome. this recent topics template dose not stop on mouse hover 1852325475
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Fri 26 Jun - 15:51

    good the topic still open
    there is other problem with Chrome
    width of the widget is overboard way way to wide
    is there a way to solve this too
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Fri 26 Jun - 15:58

    Add attribute dir="ltr" into marquee tag.
    Code:
    <marquee class="alt1" onmouseover="this.setAttribute('scrollamount', '0')" onmouseout="this.setAttribute('scrollamount', '2')" direction="right" scrollamount="2" scrolldelay="60" dir="ltr">
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Fri 26 Jun - 21:47

    i did that still no use
    same size over wide on Chrome
    Shocked
    Zzbaivong
    Zzbaivong
    Forumember


    Posts : 101
    Reputation : 51
    Language : JavaScript ^^

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Zzbaivong Fri 26 Jun - 21:50

    Add attribute width="800" into marquee tag.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Michael_vx Fri 26 Jun - 21:57

    oh my god so i was using this width="800" in the wrong place i did not add it inside the marquee tag its looking normal in chrome
    thanks so much i was stupid i did not think right way
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: this recent topics template dose not stop on mouse hover

    Post by Ape Sun 28 Jun - 21:41

    Topic solved and archived



    this recent topics template dose not stop on mouse hover Left1212this recent topics template dose not stop on mouse hover Center11this recent topics template dose not stop on mouse hover Right112
    this recent topics template dose not stop on mouse hover Ape_b110
    this recent topics template dose not stop on mouse hover Ape1010

      Current date/time is Sun 22 Sep - 16:23