View Full Version : I Have Tried...
lufbra
October 10th, 2002, 12:33 AM
Adding a scrolling text code, that will appear by the "E" or "N", or whatever browser icon you see. But because there's a "java based" ticker altready on the web site, the scrolling text won't work, is there a way of fixing this? :)
Here's the two codes....
<SCRIPT LANGUAGE="JavaScript1.2"
src="http://www.codeamber.org/js/nscodea.js">
</script>
</p>
<!-- end of Code Amber Ticker code (c)Copyright codeamber.org 2002-->
<script language="JavaScript">
<!--
var scrtxt="Name Of Web Site";
var lentxt=scrtxt.length;
var width=100;
var pos=1-width;
function scroll() {
pos++;
var scroller="";
if (pos==lentxt) {
pos=1-width;
}
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++) {
scroller=scroller+" ";}
scroller=scroller+scrtxt.substring(0,width-i+1);
}
else {
scroller=scroller+scrtxt.substring(pos,width+pos);
}
window.status = scroller;
setTimeout("scroll()",150);
}
-->
</script>
</head>
<BODY BGCOLOR=#000000 TEXT=#00DD00 onLoad="scroll();return true;">
TIA.
Dave.
degsy
October 10th, 2002, 12:42 AM
Can you post the full page code.
You may be posing it in the wrong place.
lufbra
October 10th, 2002, 01:06 AM
<html> <head> <title>Cosmic Coffee Shop, Eat Beef, The Other White Meat </title> <% GENERATOR %> <% CSS %> <% JAVASCRIPT %>
<script language="JavaScript">
<!--
var scrtxt="Name Of Board ";
var lentxt=scrtxt.length;
var width=100;
var pos=1-width;
function scroll() {
pos++;
var scroller="";
if (pos==lentxt) {
pos=1-width;
}
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++) {
scroller=scroller+" ";}
scroller=scroller+scrtxt.substring(0,width-i+1);
}
else {
scroller=scroller+scrtxt.substring(pos,width+pos);
}
window.status = scroller;
setTimeout("scroll()",150);
}
-->
</script>
</head>
<body bgcolor='#000000' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" alink='#000000' vlink='#000000' onLoad="scroll();return true;">
<% BOARD HEADER %>
<!-- Begin Code Amber Ticker code. -->
<P ALIGN=CENTER>
<SCRIPT LANGUAGE="JavaScript1.2"
src="http://www.codeamber.org/js/nscodea.js">
</script>
</p>
<!-- end of Code Amber Ticker code (c)Copyright codeamber.org 2002-->
<% NAVIGATION %>
<% BOARD %><center><a href="http://www.britus.34sp.com/cosmic_coffee_shop/index.php"><b>Back To Cosmic Coffee Shop's Forum Index</b></a> <br><br></center>
<center><br>
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<a href="http://s13.sitemeter.com/stats.asp?site=s13paulgro" target="_top">
<img src="http://s13.sitemeter.com/meter.asp?site=s13paulgro" alt="Site Meter" border=0></a>
<!--WEBBOT bot="HTMLMarkup" Endspan --></center>
<center><br>
<form name="a294" >
<select name="a969" size="1" style="background-color:#ffffff"
onChange="displaydesc(document.a294.a969.selectedIndex)">
<option selected value="http://pub137.ezboard.com/bbullybeefs">BullyBeef's
</option>
<option value="http://www.dumblaws.com/forums/vbulletin/">Dumb Laws</option>
<option value="http://www.daves-pub.34sp.com/phpBB/index.php">Daves
Pub</option>
<option value="http://pub52.ezboard.com/bsylviisspace">Sylvii's Space</option>
<option value="http://pub94.ezboard.com/blirasduchy">Lira's Duchy</option>
<option value="http://pub70.ezboard.com/bonlinelovediarys">Online Love
Diarys</option>
<option value="http://users.boardnation.com/~ladybarker/index.php">LadyBarkers
Lair</option>
<option value="http://pub47.ezboard.com/bventingzone">The Venting
Zone</option>
<option
value="http://forums.kimmygemgraphics.com/cgi-bin/ikonboard/ikonboard.cgi">Kimmygem's
Computer Graphics</option>
<option value="http://pub34.ezboard.com/barosebudforstevie">A Rosebud For
Stevie</option>
<option value="http://bullybeefs.com">BullyBeef's Computer Site</option>
<option value="http://pub78.ezboard.com/bbumpinboard98251">The Bumpin
Board</option>
<option value="http://ladybarker.homestead.com/Ghosts.html">LadyBarker's Ghost Pages</option>
</select>
<input type="button" value="Go"
onClick="location=document.a294.a969.options[document.a294.a969.selectedIndex].value"><br>
<span id="descriptions" align="left" style="font:italic 13px Arial">
</span>
</form></center>
<% STATS %><% COPYRIGHT %></body>
</html>
degsy
October 10th, 2002, 01:55 AM
<%TAGNAME%>
Looks suspiciously like BB code.
It may be part of the BB code that is causing the conflict.
lufbra
October 10th, 2002, 02:28 AM
Is there any way of fixing it Degsy? :)
I e-mailed the ticker creator over a week ago, asking if he could help, and explaing the situation, but I've nothing from her/him!!! :(
Dave.
degsy
October 10th, 2002, 01:42 PM
onChange="displaydesc(document.a294.a969.selectedIndex)">
You're missing some code.
There should be a Script/Function called displaydesc(...)
There should be some code with descriptions of the sites.
It's nothing to do with the ticker.
lufbra
October 10th, 2002, 06:38 PM
Hmmmm, when I copied and pasted these, I thought I had everything I needed, I guess not!!! :(
Dave.
enat66
October 10th, 2002, 09:49 PM
You could try putting the ticker in an inline frame
Buzz
October 11th, 2002, 12:27 AM
Also....
function scroll() {
pos++;
var scroller="";
if (pos==lentxt) {
pos=1-width;
}
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++) {
scroller=scroller+" ";}
scroller=scroller+scrtxt.substring(0,width-i+1);
}
else {
scroller=scroller+scrtxt.substring(pos,width+pos);
}
window.status = scroller;
setTimeout("scroll()",150);
}
I don't see that function called anywhere in the page. that's the acrual scroll engine. There's also a link to an external javascript file "http://www.codeamber.org/js/nscodea.js" (that may be where the function degsy pointed out is located).
degsy
October 11th, 2002, 12:41 AM
don't see that function called anywhere in the page. that's the acrual scroll engine
It is called in the BODY tag
lufbra
October 11th, 2002, 03:41 AM
Okay, so being the copy paste kinda guy I am, where does all this fit in to making it work!!! :)
Thanks guys.
Dave.
degsy
October 11th, 2002, 01:17 PM
There are two parts to that Drop-Down script.
You only have one part of it.
You need to get the other.
Where did you get the script?
degsy
October 11th, 2002, 01:18 PM
<form name="a294" >
<select name="a969" size="1" style="background-color:#ffffff" onChange="displaydesc(document.a294.a969.selectedIndex)">
<option selected value="http://sylvia4jeva.proboards4.com/index.cgi?">Grandma Sylvia4jeva </option>
<option value="http://www.daves-pub.34sp.com/phpBB/index.php">Daves Pub</option>
<option value="http://ladybarker.suddenlaunch2.com/index.cgi">LadyBarkers Lair</option>
<option value="http://pub47.ezboard.com/bventingzone">The Venting Zone</option>
<option value="http://forums.kimmygemgraphics.com/cgi-bin/ikonboard/ikonboard.cgi">Kimmygem's Computer Graphics</option>
<option value="http://nickolascarter.com">Nickolas Carter</option>
<option value="http://pub83.ezboard.com/bcosmiccoffeeshop">Cosmic Coffee</option>
<option value="http://www.alferret.co.uk/ubbcgi/ultimatebb.cgi">Chilled</option>
<option value="http://pub31.ezboard.com/bbabesplayhouse">Babes PlayHouse</option>
<option value="http://bullybeefs.com">BullyBeef's Computer Site</option>
<option value="http://www.karaokeplayground.co.uk/ubbcgi/ultimatebb.cgi">Karaoke Playground</option>
<option value="http://pub78.ezboard.com/bbumpinboard98251">The Bumpin Board</option>
</select>
<input type="button" value="Go"
onClick="location=document.a294.a969.options[document.a294.a969.selectedIndex].value"><br>
<span id="descriptions" align="left" style="font:italic 13px Arial">
</span>
</form>
<script>
var textdisplay=new Array()
textdisplay[0]="Great Board And Nice People"
textdisplay[1]="Get A Drink And Some Friendly Chat"
textdisplay[2]="Online Love Diarys"
textdisplay[3]="Great topics And Great People."
textdisplay[4]="Wanna vent, Then Click here"
textdisplay[5]="Computer Graphics Help Board"
textdisplay[6]="Great Site About The Dude Himself"
textdisplay[7]="Stevie Nicks And Great Chat"
textdisplay[8]="Great Board And Great People"
textdisplay[9]="Sit Down And Chill out here"
textdisplay[10]="Lots of interesting topics "
textdisplay[11]="Computer Help Plus Lots More"
textdisplay[12]="All Things Karaoke And More"
textdisplay[13]="Interesting Forums And Topics"
function displaydesc(which){
if (document.all)
descriptions.innerHTML=textdisplay[which]
else if (document.getElementById)
document.getElementById("descriptions").innerHTML=textdisplay[which]
}
displaydesc(document.a294.a969.selectedIndex)
document.a294.a969.options[0].selected=true
</script>
lufbra
October 11th, 2002, 01:43 PM
The web ring works fine as it is, it's the scrolling text that's not showing! :)
Dave.
degsy
October 11th, 2002, 01:51 PM
You'll have to post the URL.
Your code is definately missing the second part of the Drop Down script.
The code i've posted above is from BullyBeefs forum.
lufbra
October 11th, 2002, 02:34 PM
Here's the link Degsy....
http://www.britus.34sp.com/cosmic_coffee_shop/index.php
:)
Dave.
degsy
October 11th, 2002, 03:23 PM
The ticker shows up fine for me.
What isn't working is the Drop-Down.
When you change to another site a description is supposed to show.
You haven't put that code it, so an Error is produced (see bottom left of browser window).
lufbra
October 11th, 2002, 04:05 PM
That's odd, cos I just went to three of the sites within the "web ring" and they all showed up okay!! :)
Dave.
degsy
October 11th, 2002, 04:17 PM
Goto Bully's site.
Click the Drop-Down Menu and change to a different site.
Notice that the text under the Drop-Down shows a description of the site.
Goto your site, change the Drop-Down.
Notice that you get an Error in the Lower Left of the Browser.
lufbra
October 11th, 2002, 05:01 PM
Oh shoot, I see what you mean now Degsy, sorry for being so dumb here!!! ;)
I'll change it over the weekend, if I add the scrolling text code as well, should that then work? :)
Dave.
degsy
October 11th, 2002, 05:04 PM
The ticker is working anyway.
lufbra
October 11th, 2002, 05:22 PM
Ummmm, I was meaning scrolling text that shows on the bottom left Degsy!!! :)
Dave.
degsy
October 11th, 2002, 06:11 PM
There's a conflict with the onLoad events.
Change
onLoad="scroll(); return true"
to
onFocus="scroll(); return true"