







|
|
|
 |
| > scorll ou marquee |
[ Posté par cronet ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 19:01 | 67 messages ]
  Bonjour,
Pouvez-vous me dire, svp, s'il y a une différence entre le code <scroll> et le code <marquee> MERCI.
________________ Merci pour ce service bien utile pour tous ceux qui, comme moi, apprennent internet "sur le tas"!!!....
 
|
|
|
[ Posté par BackInBiz ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 19:10 | 1535 messages ]
  L'un comme l'autre son a eviter ...
Que veux tu faire comme effet exactement ?
________________ Mais pourquoi est-il aussi méchant ? - De retour sur le forum !
Beaucoup d'ennui donc beaucoup de réponse !a
| [ Posté par cronet ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 19:23 | 67 messages ]
  A éviter?????
J'ai un petit forum, et sur la page d'accueil, j'ai fait défiler des photos, en utilisant le code <marquee> mais il semble que je ne puisse plus en ajouter, je cherche comment faire pour résoudre ce problème!.... Voici mon petit forum, si vous voulez bein voir et peut-e^tre m'aider.MERCI
http://collie-sheltie-info.ephpbb.com/
________________ Merci pour ce service bien utile pour tous ceux qui, comme moi, apprennent internet "sur le tas"!!!....
| [ Posté par BackInBiz ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 20:33 | 1535 messages ]
  |
 Un truc que j'avais fait ... :
<iframe height="177" width="178" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="include/scroll_dernieres_releases.php"></iframe>
Et le contenu de l'iframe :
<html>
<head>
<title>News</title>
<style type="text/css">
<!--
.posrelative {
POSITION: relative;
font-size: 10px;
}
#conteneur{
OVERFLOW: hidden;
WIDTH: 178px;
CLIP: rect(0px 177px 178px 0px);
POSITION: absolute;
LEFT: 0px;
TOP: 0px;
}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
<!--
/* Copyright 2001 : Atout Développement */
/* Auteur : Yvan Vanwynsberghe */
var ns4 = (document.layers)? true:false; //NS 4
var ie4 = (document.all)? true:false; //IE 4
var dom = (document.getElementById)? true:false; //DOM
function GetNS4Object(MyID,MyDocument)
{
var MyObject= eval('MyDocument.'+MyID);
if (!(MyObject))
for(var i=0;i<MyDocument.layers.length;i++)
{
MyObject = GetNS4Object(MyID,MyDocument.layers[i].document);
if (MyObject) break;
}
return MyObject;
}
function GetObject(MyID)
{
if (dom) return document.getElementById(MyID);
if (ie4) return document.all[MyID];
if (ns4) return GetNS4Object(MyID,window.document);
return 0;
}
function GetCSS(MyObject)
{
if (dom || ie4) return MyObject.style;
else if (ns4) return MyObject;
else return 0;
}
function GetHeight(MyObject)
{
if (dom || ie4) return MyObject.offsetHeight;
else if (ns4) return MyObject.clip.height;
else return 0;
}
function GetWidth(MyObject)
{
if (dom || ie4) return MyObject.offsetWidth;
else if (ns4) return MyObject.clip.width;
else return 0;
}
function GetTop(MyObject)
{
if (dom || ie4)
return (MyObject.offsetTop);
if (ns4) return MyObject.y;
return 0;
}
function GetLeft(MyObject)
{
if (dom || ie4) return MyObject.offsetLeft;
if (ns4) return MyObject.x;
return 0;
}
function MoveObject(myX,myY)
{
this.X = myX;
this.Y = myY;
this.CSS.left=this.X;
this.CSS.top=this.Y;
}
function MoveObjectUp(mystep)
{
this.Y -= mystep;
this.CSS.top=this.Y;
}
function MoveObjectDown(mystep)
{
this.Y += mystep;
this.CSS.top=this.Y;
}
function CreateObject(DivId,MyObject)
{
if (MyObject)
this.Object = MyObject;
else
this.Object = GetObject(DivId);
if (this.Object)
{
this.CSS = GetCSS(this.Object);
this.Height = GetHeight(this.Object);
this.Width = GetWidth(this.Object);
this.X = GetTop(this.Object);
this.Y = GetLeft(this.Object);
this.Move = MoveObject;
this.Up = MoveObjectUp;
this.Down = MoveObjectDown;
}
return this;
}
function DelTextNode(MyObject)
{
var node = MyObject.firstChild;
var next;
while (node)
{
next = node.nextSibling;
if (node.nodeType == 3)
MyObject.removeChild(node);
node = next;
}
}
function CreateChildren(MyObject,HoriSpacer,VertSpacer)
{
var i=0;
var MyChildren = new Array();
if (dom)
{
DelTextNode(MyObject);
for (i=0;i<MyObject.childNodes.length;i++)
{
MyChildren[i] = new CreateObject(0,MyObject.childNodes[i]);
MyChildren[i].Move(i*HoriSpacer,i*VertSpacer);
}
return MyChildren;
}
if (ie4)
{
for (i=0;i<MyObject.children.length;i++)
{
MyChildren[i] = new CreateObject(0,MyObject.children(i));
MyChildren[i].Move(i*HoriSpacer,i*VertSpacer);
}
return MyChildren;
}
if (ns4)
{
for (i=0;i<MyObject.document.layers.length;i++)
{
MyChildren[i] = new CreateObject(0,MyObject.layers[i]);
MyChildren[i].Move(i*HoriSpacer,i*VertSpacer);
}
return MyChildren;
}
}
function ScrollUp()
{
var MyInterval = this.Interval1;
this.stop();
if (this.Children[this.FirstChildren].Y<-this.threshold)
{
MyInterval = this.Interval2;
this.Children[this.FirstChildren].Down(this.TotalHeight);
if (this.FirstChildren<this.Children.length-1)
{
this.FirstChildren++;
this.threshold += this.Children[this.FirstChildren].Height;
}
else
{
this.FirstChildren = 0;
this.threshold = this.Children[this.FirstChildren].Height+this.Spacer;
}
}
for (var i=0;i<this.Children.length;i++)
{
this.Children[i].Up(this.Step);
}
this.ProcessId = setTimeout(this.name + '.start()', MyInterval);
}
function ScrollStop()
{
if (this.ProcessId)
clearTimeout(this.ProcessId);
this.ProcessId = null;
}
function Box(BoxName, DivId, myStep, myTempo1, myTempo2, mySpacer)
{
this.name = BoxName;
this.Step = myStep ? myStep : 1;
this.Interval1 = myTempo1 ? myTempo1 : 100;
this.Interval2 = myTempo2 ? myTempo2 : 100;
this.Spacer = mySpacer ? mySpacer : 0;
this.ProcessId = null;
this.Container = new CreateObject(DivId);
this.Children = new CreateChildren(this.Container.Object,0,mySpacer);
this.FirstChildren = 0;
this.LastChildren = this.Children.length-1;
this.threshold = this.Children[0].Height+this.Spacer;
var myHeight = 0;
for (var i=0;i<this.Children.length;i++)
{
myHeight += (this.Children[i].Height + this.Spacer);
}
this.TotalHeight = myHeight;
this.Container.visibility = 'visible';
}
Box.prototype.start = ScrollUp;
Box.prototype.stop = ScrollStop;
//-->
var MyBox = null;
function Init(){
MyBox = new Box('MyBox', 'conteneur', 1, 100, 100, 3);
MyBox.start();
}
-->
</script>
</head>
<body onload="Init();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
<div id="conteneur" onMouseOver="MyBox.stop();" onMouseOut="MyBox.start();">
<?php
include('config.php');
$sql = "SELECT petite_image, id_video, nom FROM ".$tbl_video." ORDER BY id_video DESC";
$query = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
while($video = mysql_fetch_array($query)) {
?>
<div ID="info1" class="posrelative"><a href="../videos.php?id=<?php echo $video['id_video']; ?>" target="_top"><img src="../img/video/petite_image/<?php echo $video['petite_image']; ?>" alt="<?php echo ucwords($video['nom']); ?>" width="176" height="49" border="0" /></a></div>
<?php } ?>
</div></body></html>
|
|
Adapte le ...
________________ Mais pourquoi est-il aussi méchant ? - De retour sur le forum !
Beaucoup d'ennui donc beaucoup de réponse !a
| [ Posté par cronet ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 21:27 | 67 messages ]
  merci, mais cela me paraît fort compliqué, non?!!!
________________ Merci pour ce service bien utile pour tous ceux qui, comme moi, apprennent internet "sur le tas"!!!....
| [ Posté par BackInBiz ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 21:59 | 1535 messages ]
  Oauis c'est compliqué mais en fait il n'y a jamais de blanc ...
A la derniere image, la premiere est regeneré et mis au bout !
________________ Mais pourquoi est-il aussi méchant ? - De retour sur le forum !
Beaucoup d'ennui donc beaucoup de réponse !a
| [ Posté par cronet ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 22-02-2008 à 22:01 | 67 messages ]
  merci mais non, ce n'est pas ce que je cherche, ça n'ira pas.
________________ Merci pour ce service bien utile pour tous ceux qui, comme moi, apprennent internet "sur le tas"!!!....
| [ Posté par BackInBiz ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 23-02-2008 à 01:47 | 1535 messages ]
  Alors utilise Marquee !
________________ Mais pourquoi est-il aussi méchant ? - De retour sur le forum !
Beaucoup d'ennui donc beaucoup de réponse !a
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|