/    Sign up×
Community /Pin to ProfileBookmark

needing some help

how can i do a scrolling banner ( as announcement area )
in php scripting language
by filling a forum first and then submit it , after submetting
the announcement title will apear in a scrolling banner
would any one know how??? ?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@razvanpatMar 27.2005 — I don't think that has anything to do with php. You might want to try Flash...
Copy linkTweet thisAlerts:
@NogDogMar 27.2005 — The actual banner display would need to be done with a client-side techniques, be it JavaScript, Java, Flash, etc. If you used JavaScript, you could use PHP to define the text to be displayed. For instance, if the message text is supplied via a form field called "message":
[code=php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<title>Untitled</title>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<script language="JavaScript">
var id,pause=0,position=0,revol=9;
function banner()
{
var msg=" " +
"<?php echo htmlentities($_POST['message'], ENT_QUOTES) ?>";
var speed=10;
document.thisform.thisbanner.value=msg.substring(position,position+50);
if(position++==msg.length)
{
if (revol-- < 2) return;
position=0;
}
id=setTimeout("banner()",1000/speed);
}
</script>
</head>
<body onload="banner()">
<form name="thisform">
<input type="text" name="thisbanner" size="40" style="font-family: 'courier new', courier, monospace">
</form>
</body>
</html>
[/code]
×

Success!

Help @java-lover spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...