PDA

View Full Version : Dreamweaver help..



Also_w00t
12th August 2002, 21:21
ok i made a kick ass interface for my background in my web page, but because of it's size vs my resolution, it does this nasty nasty tiling (the image repeats itself for the background) is there any way i can fix this so it will stretch to fit the screen size?

Also_w00t
12th August 2002, 22:15
and i know how to make CSS styles but it will make the background only appears where i am typing...

klandestine
12th August 2002, 23:16
i had the same problem @ one of the sites i did ..... it was just a question of resizing the BG image until it was right (i.e keep previewing in browser and if it's wrong resize again using the properties bar)

Don't forget thoughtthat not all peeps looking @ your site willl have the same resoultion that u r using!!!!!


Klandestine

Also_w00t
13th August 2002, 00:11
ok i fixed that problem... but now i got another question lol... how do you make scrolling text on the page... like this

luck777jojo
13th August 2002, 09:23
for that you have to use javascript I believe I know frontpage and Adobe GoLive can do it but I'm not sure about dreamweaver, BTW frontapage doesn't use javascript for it because it usue it's own plugins which screws everything up because if your server has those plugins your site has security holes and if it doesn't then those things won't work :p

BTW I guess you can also just use an animated .gif to scroll the text but or even a small flash banner but... that might not be what you're looking for.

Also_w00t
13th August 2002, 20:38
well i'll just look for a javascript plugin to do it cuz i dont wanna mess with those stupid frontpage extentions that .00001% of web site providers use

9-L
13th August 2002, 21:21
isnt that teh marqee thing? well i think html doe sthat as well...

klandestine
13th August 2002, 23:09
do u want tickertape or scrolling script for the actual page??


If its for the page then Cut n Paste this


html>
<head>
<SCRIPT LANGUAGE="javascript">
/* ************************************************** ********************************
* This code was created by Jim Young of www.requestcode.com . *
* You may use this code at no charge. All I ask is that you give me *
* credit. Please visit my site for more scripts like this one. *
************************************************** ********************************
Enter your links or text in the array below that you want to scroll. Mak sure that you use single quotes within
the double quotes
*/
var msg=new Array()
msg[0]="<FONT FACE='Arial'><B><I><A HREF='http://www.requestcode.com'>Visit Request Code for more great scripts like this one!</A><I></B></FONT>"
msg[1]="<FONT FACE='Arial'><B><I><A HREF='http://www.wsabstract.com'>Visit Website Abstraction for great JavaScripts, Tutorials and Forums!</A><I></B></FONT>"
msg[2]="<FONT FACE='Arial'><B><I><A HREF='http://www.dynamicdrive.com'>Visit Dynamic Drive for the excellent DHTML scripts!</A><I></B></FONT>"
msg[3]="<FONT FACE='Arial'><B><I><A HREF='http://www.htmlgoodies.com'>Visit HTML Goodies for great JavaScript and HTML Tutorials!</A><I></B></FONT>"

/* The variables below are the ones you want to change */

speed=150 // Sets the speed in milliseconds at which the link or text scrolls.
var divwidth=600 // Sets the width of the div or layer in pixels. You will have to play with this to get it set correctly.
var divheight=20 // Sets the height of the div or layer in pixels. Same as above.

/*
The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
or links is moved. Which one is used is determined by the direction that you pick in the variable whichscroll.
The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
you set whichscroll to 3 and divinclr if you set whichscroll to 4. You can change these variables to speed up
or slow down the movement of the scroll.
*/

var divincbt=1
var divinctb=-1
var divincrl=10
var divinclr=-10

var divpause=3000 // Sets how long to pause in milliseconds before scrolling the next link or text.

var divtop="50" // divtop and divleft set the top and left positions of the container div or layer in pixels.
var divleft="10"

var divcolor="white" // Sets the background color of the div or layer

var divname1="scroll2" // Sets the name of your div or layer for the first link or text that is displayed
var divname2="scroll3" // Sets the name of your div or layer for the next link or text to be displayed

/*
The variable whichscroll is used to set the direction of the scrolling. It is currently set to 1.
1 = Bottom to Top
2 = Top to Bottom
3 = Right to Left
4 = Left to Right
*/
var whichscroll="1"

/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */

var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll=="1")
{
stopposa=0
stopposb=divheight*-1
divprop="top"
divinc=divincbt
}
if(whichscroll=="2")
{
stopposa=0
stopposb=divheight
divprop="top"
divinc=divinctb
}
if(whichscroll=="3")
{
stopposa=0
stopposb=divwidth*-1
divprop="left"
divinc=divincrl
}
if(whichscroll=="4")
{
stopposa=1
stopposb=divwidth+2
divprop="left"
divinc=divinclr
}

function Scrollboxa(obja)
{
savobja=obja
posa=posa-divinc
if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||
((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa)))
{
clearTimeout(scrollmsga)
setTimeout("scrollit()",divpause)
}
else
{
if(document.getElementById) // IE5 and NS6
{
eval("elma.style."+divprop+"=posa")
elma.style.visibility="visible"
}
if(document.layers) // NS4+
{
eval("obja."+divprop+"=posa")
document.main.visibility="show"
}
scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
}
}
function Scrollboxb(objb)
{
savobjb=objb
posb=posb-divinc
if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||
((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb)))
{
clearTimeout(scrollmsgb)
}
else
{
if(document.getElementById) // IE5 and NS6
{
eval("elmb.style."+divprop+"=posb")
}
if(document.layers) // NS4+
{
eval("objb."+divprop+"=posb")
objb.visibility="show"
}
scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
}
}
function scrollit()
{
i++
if(i>=msg.length)
{i=0}
posa=stopposb*-1
posb=0
if(firsttime=="y")
{
firsttime= "n"
if(document.getElementById) // IE5 and NS6
{
elma=document.getElementById(divname1)
elma.innerHTML=msg[i]
}
if(document.layers) // NS4+
{
thediva=eval("document.main.document."+divname1)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxa(thediva)
}
else
{
if(whichdiv==divname1)
{
if(document.getElementById) // IE5 and NS6
{
elmb=document.getElementById(divname1)
elma=document.getElementById(divname2)
elma.innerHTML=msg[i]
}
if(document.layers) // NS4+
{
thedivb=eval("document.main.document."+divname1)
thediva=eval("document.main.document."+divname2)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxb(thedivb)
whichdiv=divname2
Scrollboxa(thediva)
}
else
{
if(document.getElementById) // IE5 and NS6
{
elmb=document.getElementById(divname2)
elma=document.getElementById(divname1)
elma.innerHTML=msg[i]
}
if(document.layers) // NS4+
{
thedivb=eval("document.main.document."+divname2)
thediva=eval("document.main.document."+divname1)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxb(thedivb)
whichdiv=divname1
Scrollboxa(thediva)
}
}
}
</SCRIPT>
<STYLE>
A{text-decoration:none}
a:link {color:blue}
a:visited{color:00CC00}
a:active{color:blue}
a:hover{color:red}
</STYLE>
</head>
<body onLoad="scrollit()">
<CENTER><FONT FACE="Arial"><B> Scroll Along</B></FONT></CENTER>
<SCRIPT LANGUAGE="JavaScript">
/* You should no have to change the scripts below */
if(document.getElementById) // IE5 and NS6
{
document.write('<DIV STYLE="position:relative;top:'+divtop+';left:'+divleft+'; width:'+divwidth+';height:'+divheight+';visibility :visible;background-color:'+divcolor+';overflow:hidden;clip:rect(0,'+d ivwidth+','+divheight+',0)">')
document.write('<DIV STYLE="position:relative;top:0;left:0;width:'+divwidth+'; height:'+divheight+'">')
document.write('<DIV ID='+divname1+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+'; height:'+divheight+'"></DIV>')
document.write('<DIV ID='+divname2+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+'; height:'+divheight+';visibility:hidden"></DIV>')
document.write('</DIV></DIV>')
}
if(document.layers) // NS4+
{
document.write('<ILAYER ID="main" TOP='+divtop+' LEFT='+divleft+' WIDTH='+divwidth+' HEIGHT='+divheight+' BGCOLOR='+divcolor+' VISIBILITY=hide>')
document.write('<LAYER ID='+divname1+' LEFT=0 TOP=0 WIDTH='+divwidth+'></LAYER>')
document.write('<LAYER ID='+divname2+' LEFT=0 TOP='+divheight+' WIDTH='+divwidth+'>')
document.write('</LAYER></ILAYER>')
}
</SCRIPT>
</body>
</html>


Klandestine

BTW its not mine ... i just ripped it from the web :D

Also_w00t
13th August 2002, 23:38
wow thats a huge script i didnt think that scripts like that were so complex but thanks a bunch

klandestine
14th August 2002, 00:52
NP ...if u need more just go to http://www.scriptsearch.com


K

MoFo
25th August 2002, 05:13
I found something in a webpage about that...

======================================


crolling Marquee

If you use Internet Explorer as your browser, you can use Marquee tags to create scrolling text on your personal page. A standard format for a Marquee tag is as follows:

<MARQUEE BEHAVIOR=type DIRECTION=value LOOP=n SCROLLAMOUNT=n SCROLLDELAY=n>The text you want to scroll</MARQUEE>

Depending on how you want the text to scroll, use the following terms to fill in the variables:

For BEHAVIOR, you can input either scroll, slide or alternate. Scroll will make the text start at one side of the screen and disappear off the other. Slide will make the text start at one side and stop at the other. Alternate will make the text start at one side and bounce back to the other.

For DIRECTION, you can input either "left" or "right."

For LOOP, replace "n" with the number of times you would like the text to scroll, or input "infinite" if you want it to scroll indefinitely.

SCROLLAMOUNT allows you to adjust the amount of space, in pixels, that the text will jump as it scrolls. The higher SCROLLAMOUNT, the greater the space the text will jump. Keep in mind, however, that you don`t need to use SCROLLAMOUNT. If you opt to leave it out, your browser will select a default speed for the scrolling text.

SCROLLDELAY allows you to adjust the speed at which the text scrolls. The higher the SCROLLDELAY, the slower the text will move. As with SCROLLAMOUNT, however, if you opt not to use SCROLLDELAY, your browser will select a default speed.

A sample MARQUEE tag might look like this

WHAT`S UP!!!!!!!

** Remember: The Marquee tag only works on Internet Explorer. When viewed with a Netscape browser, the Marquee tag will not move.**

HackyMcSkillz
14th September 2002, 08:01
d00d, don't use dreamweaver anyways... If you use flash, you can create 1337 effects... I use pure falsh for my sites... (here is an example www.56kwarriors.i8.com)

wooolF[RM]
14th September 2002, 17:55
I like it :)