Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-02-2006, 09:24 PM   #1
Member (9 bit)
 
Join Date: Oct 2003
Location: CFB Greenwood, NS
Posts: 392
Send a message via AIM to cdnref Send a message via MSN to cdnref
Scrolling Images Background

Hello once again, I have tried for about 2 hours...searching google, uploading, trial and error and still haven't gotten anywhere, so I turned to the mechers for help again.


The scrolling images can be viewed here, www.greenwood-ref.profusehost.net/test/

I just want tochange the White Background to this color = 292B3A



Thanks so much in advance




PHP Code:
<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var iframesrc="external.htm"

document.write('<iframe id="datamain" src="'+iframesrc+'" body bgcolor="#292B3A" width="90px" height="55px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>')

</script> 
cdnref is offline   Reply With Quote
Old 11-03-2006, 07:50 AM   #2
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Zick boy - your post was deleted because it's broken down the forum page rendering. Please using the [ php ][ php] VB tags to enter your html code!
Statica is offline   Reply With Quote
Old 11-03-2006, 12:22 PM   #3
Member (7 bit)
 
Zick Boy's Avatar
 
Join Date: Feb 2004
Location: Owings Mills, MD
Posts: 95
Oops, my bad. Let's try this again...

Change the background color of the page inside de IFrame and not on the iframe tag itself. See if that works.
Zick Boy is offline   Reply With Quote
Old 11-03-2006, 02:04 PM   #4
Member (9 bit)
 
Join Date: Oct 2003
Location: CFB Greenwood, NS
Posts: 392
Send a message via AIM to cdnref Send a message via MSN to cdnref
I'm sorry I don't undertand where to place it.



I have tried this aswell

PHP Code:
document.write(body bgcolor="#292B3A"
But nothing, I don't think you guys need to see the external.htm file... but if you want I can post it
cdnref is offline   Reply With Quote
Old 11-03-2006, 02:33 PM   #5
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Your external.htm file should have the bg color defined, it it's BODY tag. As it stands it works fine for FF but for IE you do see the bgcolor of external.htm
Statica is offline   Reply With Quote
Old 11-03-2006, 07:15 PM   #6
Member (9 bit)
 
Join Date: Oct 2003
Location: CFB Greenwood, NS
Posts: 392
Send a message via AIM to cdnref Send a message via MSN to cdnref
It's not defind in the external.htm file, not as I can see. The original is below

PHP Code:
<html>
<
body>

<
div id="datacontainer" style="position:absolute;left:1px;top:10px;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">

<!-- 
ADD YOUR SCROLLER CONTENT INSIDE HERE -->

//The images are here

<!-- END SCROLLER CONTENT -->

</
div>

<
script type="text/javascript">

/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500

function initializeScroller(){
dataobj=document.alldocument.all.datacontainer document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()"initialdelay)
}

function 
getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}

function 
scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}

if (
window.addEventListener)
window.addEventListener("load"initializeScrollerfalse)
else if (
window.attachEvent)
window.attachEvent("onload"initializeScroller)
else
window.onload=initializeScroller

</script>

</body>
</html> 
cdnref is offline   Reply With Quote
Old 11-03-2006, 07:19 PM   #7
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Quote:
Originally Posted by cdnref
It's not defind in the external.htm file, not as I can see. The original is below
Exactly .. so try defining it in the body tag of the file (external.htm)
Statica is offline   Reply With Quote
Old 11-04-2006, 11:53 PM   #8
Member (9 bit)
 
Join Date: Oct 2003
Location: CFB Greenwood, NS
Posts: 392
Send a message via AIM to cdnref Send a message via MSN to cdnref
Ah...! I'll give it a shot. Got called into work..worked 14 hours..so I'm kinda tired now...Will get on it when I'm more alive.


Thanks Statica
cdnref is offline   Reply With Quote
Old 11-06-2006, 11:40 AM   #9
Member (9 bit)
 
Foosa's Avatar
 
Join Date: Jan 2006
Location: Statesboro, Ga
Posts: 265
Where you have id="datamain" add name="datamain" just after it.

Was always told to do that. But what your trying to do is over my head.
Foosa is offline   Reply With Quote
Old 11-07-2006, 08:34 AM   #10
Member (7 bit)
 
Zick Boy's Avatar
 
Join Date: Feb 2004
Location: Owings Mills, MD
Posts: 95
on the BODY tag of your external.html add a bgcolor attribute like this:

PHP Code:
<body bgcolor="#292B3A"
Zick Boy is offline   Reply With Quote
Old 11-13-2006, 02:38 PM   #11
Member (9 bit)
 
Join Date: Oct 2003
Location: CFB Greenwood, NS
Posts: 392
Send a message via AIM to cdnref Send a message via MSN to cdnref
Alright, IT WORKS..


Thank Statica and Zickboy

Putting it in the external as
PHP Code:
<body bgcolor="#292B3A"
worked.



I ahd trouble viewing it as the free host placed ads inside the iframe. So I decided to dish out some bucks and got a domain.

www.kingston-greenwoodrefs.com

Thanks, I'll be sure to link pcmech. BTW do they have a button for use?
cdnref is offline   Reply With Quote
Old 11-20-2006, 06:59 AM   #12
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Check with : David Risley
Statica is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Scrolling Problem Foster Home Theater, Audio, and Video 3 11-03-2005 01:14 AM
Background files missing... yoyall Windows Legacy Support (XP and earlier) 2 10-30-2005 07:40 AM
Attn: Anyone using F@H Signature or Avatar Images Stryker Distributed Computing 7 03-03-2005 08:28 PM
I want a desktop background!!! imbest123 General Discussion 3 09-25-2003 10:13 PM
gif / jpeg images alkscd Gaming and Benchmarks 9 08-08-2002 12:30 PM


All times are GMT -5. The time now is 05:15 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2