The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

javascript messes up scrolling when input in announcements

View previous topic View next topic Go down

javascript messes up scrolling when input in announcements

Post by RedRaw on April 7th 2011, 7:14 pm

Hi,

I added a javascript into announcements rotator.

It works rather well (I can actually see the banner that the code is presenting) on its own.

The problem arises when I add another banner to announcements and activate any kind of scrolling. When that happens, instead of forum loading, only the javascript banner appears at the top left of the page.

I was wise enough to open stuff in new tabs when I tried this so I fixed it, but I still would like to get it to work so that my banners would actually scroll. One is a simple jpg banner and the other is this javascript code.

Am I being clear and understandable?

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by RedRaw on April 10th 2011, 3:30 pm

bump

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by Mike on April 10th 2011, 7:27 pm

Can i get a link to your forum pleae?

Mike
Hyperactive

Male Posts : 4242
Reputation : 466
Language : English, HTML, CSS
Location : Bozeman, Montana

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by RedRaw on April 20th 2011, 10:56 am

Drogba921 wrote:Can i get a link to your forum pleae?
http://www.pokericaforum.net

I obv. disabled scrolling because there is no forum to see if it is enabled.

When scrolling is enabled, all you can see in the browser is the banner (twice) in upper left corner and everything else is white. No forum, no nothing.

Thus, I disabled announcements rotation, but I would really like to get it back so that I can put more announcements up there and rotate them.

How come javascript would mess that up so much?

Do you need a js code used in order to possibly figure this out?

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by RedRaw on April 22nd 2011, 9:58 pm

b u m p

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by RedRaw on April 25th 2011, 1:01 am

bump

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by kirk on April 25th 2011, 6:57 am

whats the codes ?
And do you have the announcement options on scroll or is the scroll in a marquee?

i cant tell anything without seeing the coding but if it's just scrolling banners you can have the images lined up and activate the scroll, or you can just add marquee for how you want it to scroll in your html coding.

you can also construct everything using bbcode with image tags and scroll tags and it will convert to html automatically when you hit save.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: javascript messes up scrolling when input in announcements

Post by RedRaw on April 28th 2011, 10:54 am

@kirk wrote:whats the codes ?
And do you have the announcement options on scroll or is the scroll in a marquee?

i cant tell anything without seeing the coding but if it's just scrolling banners you can have the images lined up and activate the scroll, or you can just add marquee for how you want it to scroll in your html coding.

you can also construct everything using bbcode with image tags and scroll tags and it will convert to html automatically when you hit save.
Here goes the code that I have set up as first announcement.

Code:
<!--JavaScript Tag with group ID // Tag for network 1170: AV - Adnet // Website: Pokerica.net // Page: http://www.pokericaforum.net // Placement: forum 728x90 (3154357) // created at: Apr 7, 2011 3:53:18 PM-->
<script type="text/javascript">
<!--
if (window.adgroupid == undefined) {
   window.adgroupid = Math.round(Math.random() * 1000);
}
document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/1170/3154357/0/225/ADTECH;loc=100;target=_blank;grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>');
//-->
</script><noscript><a href="http://adserver.adtech.de/adlink/3.0/1170/3154357/0/225/ADTECH;loc=300" target="_blank"><img src="http://adserver.adtech.de/adserv/3.0/1170/3154357/0/225/ADTECH;loc=300" border="0" width="728" height="90"></a></noscript>
<!-- End of JavaScript Tag -->

If I add a 2nd announcement (+, then add the jpg. for instance) and turn on ANY kind of scrolling, than this code (the one I posted above) completely messes up the forum in a way that the banner the code is showing is shown in top left corner of the screen twice (one below another) and the rest of the screen is completely blank. When I turn the scrolling off, the forum returns and there is a single banner shown (the one above, code).

As for the scroll in the marquee, yes, this code also scrolls different banners depending in itself. I would like to have that + the ability to scroll these together with my banners on the forum.

Am I being clear enough? If there is a problem with what I am saying, please point it out and I will give my best to clarify further.

RedRaw
Forumember

Posts : 42
Reputation : 1
Language : Croatian

http://www.pokericaforum.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum