[solved] scrolling calLite events

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

[solved] scrolling calLite events

Beitrag von alister »

In another project to reduce room on my portal, I've also been trying to get the events to scroll like the Recent Topics block. I used your "Events from callite 1.4.4 on ezPortal" code originally. The same event repeats but in new blocks. I'm not a programming genius here but I thought may have been able to figure it out. I'd appreciate any suggestions. Thanks.

Standard view before scrolling attempt:
Bild

Attempt at scrolling the events (it does actually scroll but that's about all that seems to work):
Bild

I borrowed the OnMouse commands from the Recent Topics block .txt file bundled with ezPortal but it didn't quite work right either. In any event, here is the code I tried. It seems to treat each event as a new mini-block.

Code: Alles auswählen

		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		  <!-- BEGIN event_list -->
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{event_list.EVENTS}</b></span></td>
		   </tr>
		  <!-- END event_list -->
		  <!-- BEGIN event -->
		   <tr>

			<td class="row1" align="left"><span class="gensmall">
			<marquee id="events_scroll" behavior="scroll" direction="up" height="110" scrolldelay="150" scrollamount="2">

			<a href="{event.SUBJECT}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{event.SUBJECT}</a><br /></marquee></span></td>
		</tr>

		  <!-- END event -->
		  </table>
Zuletzt geändert von alister am Do 14.Okt, 2004 16:40, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Try this:

Code: Alles auswählen

        <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
        <!-- BEGIN event_list -->
         <tr>
         <td class="catHead" height="25"><span class="genmed"><b>{event_list.EVENTS}</b></span></td>
         </tr>
        <!-- END event_list -->
         <tr>
         <td class="row1" align="left" onMouseOver="stop()" onMouseOut="start()"><span class="gensmall">
         <marquee id="events_scroll" behavior="scroll" direction="up" height="110" scrolldelay="150" scrollamount="2">
         <!-- BEGIN event -->
        	{event.SUBJECT}<br />
         <!-- END event -->
         </marquee></span>
      	 </td>
      	 </tr>
        </table>
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Beitrag von alister »

Great suggestion, oxpus. That (mostly) worked! The onMouseOver's don't show but then again they didn't stop the marquee. I also got an error in the Internet Explorer status bar saying "Error on page" when your new code is inserted. It's detail says "Object expected".
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, then insert the onMouseOver and onMouseOut from your code and it will work again.
But regard: These javascript commands will not work with browsers like Firefox ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Beitrag von alister »

Perfect. I added in the event date (wish I could format it still to mm/dd/yyyy) and reformatted it a bit. Thanks again, oxpus!

www.maximumkc.com
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten