There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
adware audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freeze freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook 2007 power printer problem ram restart router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Slowing down DHTML effects in Frontpage


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
cahallyburton's Avatar
Senior Member with 132 posts.
 
Join Date: Oct 2001
29-Sep-2003, 07:11 PM #1
Slowing down DHTML effects in Frontpage
I'm using the "fly in" DHTML effect for text in FP 2000. My text "flies in" across the page too fast. Is there a way to adjust the speed?
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
30-Sep-2003, 11:23 AM #2
You can change the speed right in the code.
cahallyburton's Avatar
Senior Member with 132 posts.
 
Join Date: Oct 2001
30-Sep-2003, 06:15 PM #3
Where in the code?
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
01-Oct-2003, 09:46 AM #4
Can you send a snippet of the code that relates to this? It hard to say without seeing it. I'm assuming it's javascript; there should be someplace that indicates speed.
cahallyburton's Avatar
Senior Member with 132 posts.
 
Join Date: Oct 2001
01-Oct-2003, 12:04 PM #5
Sure, and thanks for your help:

<p align="right" dynamicanimation="fpAnimflyLeftFP1" id="fpAnimflyLeftFP1" style="position: relative !important; visibility: hidden" language="Javascript1.2"><font color="#FFFF00" face="Harlow Solid Italic" size="7">High&nbsp;
</font></td>
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
01-Oct-2003, 12:29 PM #6
You must have left some of the code out. I'm attaching some code that will do the same thing only make it easier for you. Just follow the directions I have placed in the code indicated by // in front of the comment. Good luck.
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
01-Oct-2003, 12:30 PM #7
Oops. Here is attachment.
Attached Files
File Type: txt leftflyin.txt (1.1 KB, 44 views)
cahallyburton's Avatar
Senior Member with 132 posts.
 
Join Date: Oct 2001
01-Oct-2003, 03:56 PM #8
This is the code with my variables in it, but I'm getting a javascript error that I think has to do with an object in the crossheader section. Please take a look and see what I've done wrong. Thanks.

<script>
//set style for NS4 to ''
//change the -400 to pause before bringing in the message - higher for faster, lower for slower
//change "welcome to our website" to your own words.
//change font face to what you like and font color if you want like this: <font color="red">


if (document.layers)
var ns4def=''
</script>

<h1 id="flyin" style="position:relative;left:-100;font-style:italic" style=&{ns4def};><font face="Harlow Solid Italic">High</font></h1>


<script language="JavaScript1.2">

/*
Fly-in Header script (credit must stay enclosed)
By javascriptkit.com
For this and over 400+ JavaScripts,
Visit http://www.javascriptkit.com
*/


if (document.getElementById||document.all)
var crossheader=document.getElementById? document.getElementById("flyin").style : document.all.flyin.style

//change the +20 to +10 or +5 to make slower

function animatein(){
if (parseInt(crossheader.left)<0)
crossheader.left=parseInt(crossheader.left)+5
else{
crossheader.left=0
crossheader.fontStyle="normal"
clearInterval(start)
}
}

if (document.getElementById||document.all)
start=setInterval("animatein()",50)


</script>
__________________
"You can't make this stuff up"
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
01-Oct-2003, 04:03 PM #9
Everything worked fine for me. What kind of error are you getting? I just inserted your code into an existing HTML page (between the body tags) and it worked fine.
cahallyburton's Avatar
Senior Member with 132 posts.
 
Join Date: Oct 2001
01-Oct-2003, 06:04 PM #10
Not sure what the problem is now. I took care of the Javascript error, but for some reason Frontpage omits the code between <h2 id="flyin"
and
<font face=....

so that the text isn't animated. This happens even when I enter the codem anually into the html. I can click the Normal or Preview tabs and that line simply disappears from within the code. I'm feeling awfully stupid!
__________________
"You can't make this stuff up"
lola2001's Avatar
Computer Specs
Senior Member with 1,904 posts.
 
Join Date: Jan 2001
Location: Ontario, Canada
01-Oct-2003, 09:28 PM #11
Don't feel stupid, silly things happen to all of us! I don't know too much about front page but I'm sure it is a glitch with the program. Dreamweaver doesn't do things like that. You could try copying all the code into notepad and upload from there. Take out all references to FrontPage though and don't forget to save it as an .html. Let me know what happens.
__________________
Millions of people believe in God, yet nobody has seen him. Millions of people have seen UFO's yet nobody believes in them
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:17 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.