IE 8 stop supporting "marquee" tag. even it is supported by most other browsers, W3 validator showing as a error. Im using "marquee" to scroll downloads and my game arcade contains. is there any way to use jquery or something similar to do this process?
i found great jquery scroller here
Only registered users can see links on this board! Get registered or login to the forums!
but i dont have any clue how to use it in my blocks.
this is my download block code.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
/************************************************************************/
/* Additional code clean-up, performance enhancements, and W3C and */
/* XHTML compliance fixes by Raven and Montego. */
/************************************************************************/
if ( !defined('BLOCK_FILE') ) {
Header('Location: ../index.php');
die();
}
global $prefix, $db;
$content = '';
$n = 1;
$result = $db->sql_query('SELECT lid, title FROM '.$prefix.'_downloads_downloads ORDER BY hits DESC LIMIT 0,10');
while (list($lid, $title) = $db->sql_fetchrow($result)) {
$lid = intval($lid);
$title2 = htmlspecialchars(str_replace('_', ' ', $title), ENT_QUOTES, _CHARSET);
$content .= '<strong><big>·</big></strong> '.$n.
': <a href="modules.php?name=Downloads&d_op=viewdownloaddetails&lid='.$lid.'">'.$title2.'</a><br />';
++$n;
}
?>
can anyone tell me how to apply jquery scroller or something smiler to this code. thanks in advance.
you can adjust the width and height to your needs. If you run multiple themes you'll need to add to all the style.css files... You can see it working on my testing site @ the bottom
Only registered users can see links on this board! Get registered or login to the forums!
I might also suggest changing the direction to up and adding a true at the end (so it pauses on mouseover), like so:
$jScroller.add("#scroller_container","#scroller","up",1,true);
in your head-jscroller.php file
hi spastic, i like to ask one more thing. is there any way to show, how many hits for each download in the next raw? sorry about disturbing and thanks a lot for all ur help
View next topic View previous topic
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 You cannot vote in polls in this forum