inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Aug 10, 2017 13:45:02 GMT -8
adminabp, There are 2 e's in "marquee". Did you type it as "marque" or "marquee" in your code change?
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Aug 10, 2017 13:48:02 GMT -8
adminabp , There are 2 e's in "marquee". Did you type it as "marque" or "marquee" in your code change? I didn't type it, I copy/pasted(to avoid typos like in my post).
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Aug 10, 2017 13:53:29 GMT -8
adminabp , There are 2 e's in "marquee". Did you type it as "marque" or "marquee" in your code change? I didn't type it, I copy/pasted(to avoid typos like in my post). I had originally had the change as: <script> $(document).ready(function() { $('marquee').insertBefore("#top-ad-banner'); }); </script>
That had worked in the console. I had changed it to what's in my previous post because my change didn't check for .length - which probably isn't needed, as there's a default text line if none are present in the UI, so the marquee should always have a length anyway.
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Aug 10, 2017 14:00:58 GMT -8
I didn't type it, I copy/pasted(to avoid typos like in my post). I had originally had the change as: <script> $(document).ready(function() { $('marquee').insertBefore("#top-ad-banner'); }); </script>
That had worked in the console. I had changed it to what's in my previous post because my change didn't check for .length - which probably isn't needed, as there's a default text line if none are present in the UI, so the marquee should always have a length anyway. Just tried that, no difference.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Aug 10, 2017 14:06:04 GMT -8
I had originally had the change as: <script> $(document).ready(function() { $('marquee').insertBefore("#top-ad-banner'); }); </script>
That had worked in the console. I had changed it to what's in my previous post because my change didn't check for .length - which probably isn't needed, as there's a default text line if none are present in the UI, so the marquee should always have a length anyway. Just tried that, no difference. That sucks - it worked in the console. I'll see what I can do on my end. I may have to give it a class again. Doing so, though, is going to make it so I have to rewrite some code. You may want to drop back to pre-2.0.0 version if you want to move it to the top for now.
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Aug 10, 2017 14:10:28 GMT -8
Just tried that, no difference. That sucks - it worked in the console. I'll see what I can do on my end. I may have to give it a class again. Doing so, though, is going to make it so I have to rewrite some code. You may want to drop back to pre-2.0.0 version if you want to move it to the top for now. That's cool. I appreciate the help.
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Aug 10, 2017 14:37:38 GMT -8
LynxUpdate: I was able to get the marquee to run at the top of the page just now by editing the build of the plugin and changing the last line from $('#content').prepend(marquee); to $('#top-ad-banner').prepend(marquee); The problem is, without any CSS, the marquee is limited to the width of the top ad and tries to push the ad down below the banner.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Aug 11, 2017 13:05:35 GMT -8
adminabp, Try changing this line: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>');
to add CSS onto it, like this: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>').css({'property':'value','property':'value'});
where 'property' is the CSS property and 'value' is it's value. Something like: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>').css({'height':'25px','border':'3px solid #ff0000'});
I'm not sure if it'll work, so you may want to test a couple of your CSS properties first (so you don't waste time typing them all in if it doesn't work).
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Aug 11, 2017 14:52:07 GMT -8
adminabp , Try changing this line: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>');
to add CSS onto it, like this: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>').css({'property':'value','property':'value'});
where 'property' is the CSS property and 'value' is it's value. Something like: var marquee = $('<marquee direction=\'left\' scrolldelay=\'' + msg_mqr_spd + '\' onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' + msg_mqr + '</marquee>').css({'height':'25px','border':'3px solid #ff0000'});
I'm not sure if it'll work, so you may want to test a couple of your CSS properties first (so you don't waste time typing them all in if it doesn't work). The CSS worked PERFECTLY! Also, I managed to fix moving it to the top without limiting the width to the ad or pushing the ad behind the banner. I changed: $('#content').prepend(marquee);
in the plugin to $(marquee).insertBefore('#top-ad-banner');
Just like I wanted it! abetterplace.boards.net/THANK YOU SOOOOO MUCH!!!!!! EDIT: Slight problem, it doesn't stop on mouse hover... 2ND EDIT: Nevermind. Seems to be an issue with the browser I was using, I checked it with Firefox and it is stopping on hover just fine. Thanks again!
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Aug 11, 2017 16:39:10 GMT -8
adminabp, From my understanding, Firefox has issues with that. Do you have the same issue (not stopping on hover) in another browser, like Chrome?Thanks for posting back. I'll see about getting a class back in for next version, though - so people won't have to go through what you just had to do with the CSS.
|
|
Former Member
inherit
guest@proboards.com
249450
0
Nov 23, 2024 5:43:20 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 25, 2018 8:55:59 GMT -8
Need help with the marquee. Can i put an image in it?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Jan 26, 2018 9:28:26 GMT -8
Need help with the marquee. Can i put an image in it? This plugin is not designed with images in mind. You can try it if you want, but there's no guarantee that it'll work. This plugin was designed for strictly text and text links.
|
|
inherit
193844
0
May 19, 2015 5:01:45 GMT -8
Sassy
I love you Shaggy!
2,372
May 2013
sassylisa14
|
Post by Sassy on Jun 16, 2018 17:27:44 GMT -8
In my forum, I'm using this marquee, which I love by the way ... but I was wondering .... Where would I change the "link" colour from black to something else? I don't see a spot to change that. Here's the link to my forum: sassys.proboards.com/Thanking you in advance!
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Jun 22, 2018 14:47:51 GMT -8
Sorry, Sassy - I didn't get a notification from my bookmark on this thread. Thank you for the compliment! Currently, there is no way to change the link text color without going into the build. If you can wait a couple days, I'll get an option put in there to change the link text color. I'll post here when I upload the update to the library (but it may take a few days after that before it gets approved).
|
|
inherit
193844
0
May 19, 2015 5:01:45 GMT -8
Sassy
I love you Shaggy!
2,372
May 2013
sassylisa14
|
Post by Sassy on Jun 23, 2018 2:40:35 GMT -8
Sorry, Sassy - I didn't get a notification from my bookmark on this thread. Thank you for the compliment! Currently, there is no way to change the link text color without going into the build. If you can wait a couple days, I'll get an option put in there to change the link text color. I'll post here when I upload the update to the library (but it may take a few days after that before it gets approved). Thank you very much.
|
|