473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Animation

Hi guys,

I'm using this simple code for animation and it's working in an HTML page
like this:
<html><body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="DS_BGFade.js"></script>
Hello badis
</body></html>
but when doing the same code in an asp.net page located at the same folder
as the HTML file, the javascript is running but the picture animation is not
showing..!!?
this is the code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="C:\Documents and Settings\Rochdi\My Documents\Visual Studio
2005\Projects\WebSite1\DS_BGFade.js"></script>

</body>
</html>
--
Regards,
M.Rochdi
Nov 7 '06 #1
2 1330
one the second page, the script url is a file path, which is not allowed on
a web page unless you modify your security settings

-- bruce (sqlwork.com)

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
Hi guys,

I'm using this simple code for animation and it's working in an HTML page
like this:
<html><body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="DS_BGFade.js"></script>
Hello badis
</body></html>
but when doing the same code in an asp.net page located at the same folder
as the HTML file, the javascript is running but the picture animation is
not
showing..!!?
this is the code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="C:\Documents and Settings\Rochdi\My Documents\Visual Studio
2005\Projects\WebSite1\DS_BGFade.js"></script>

</body>
</html>
--
Regards,
M.Rochdi

Nov 7 '06 #2
how can I specify the path knowing that the JS file is in the same folder as
the asp web page!!!? because when I tried to put the src file as:<script
src="DS_BGFade.js"></script>
but it didn't find it and when I put the whole path it did find it and it's
running but the images are not loaded!!!?
"bruce barker (sqlwork.com)" wrote:
one the second page, the script url is a file path, which is not allowed on
a web page unless you modify your security settings

-- bruce (sqlwork.com)

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
Hi guys,

I'm using this simple code for animation and it's working in an HTML page
like this:
<html><body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="DS_BGFade.js"></script>
Hello badis
</body></html>
but when doing the same code in an asp.net page located at the same folder
as the HTML file, the javascript is running but the picture animation is
not
showing..!!?
this is the code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<script language="JavaScript">
var author="www.dseffects.com";
var image1="pic1.gif";
var image2="pic2.gif";
var image3="pic3.gif";
var image4="";
var image5="";
var image6="";
var speed="4";
var pause="2";
var regkey="";
</script>
<script src="C:\Documents and Settings\Rochdi\My Documents\Visual Studio
2005\Projects\WebSite1\DS_BGFade.js"></script>

</body>
</html>
--
Regards,
M.Rochdi


Nov 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Simena Dinas | last post by:
KToon: 2D Animation Toolkit KToon is a 2D Animation Toolkit designed by animators (Toonka Films) for animators, focused to the Cartoon's industry. This project is covered by the GPL License...
5
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When...
6
by: Darren | last post by:
X-No-Archive Hi all, Can anyone help me with structuring the data in a small tool I have to build? I'm trying to work out if there's a design pattern or data structure that would remove some...
2
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
4
by: Sin Jeong-hun | last post by:
Most applications, including Windows Explorer, show some sort of 'wait' dialog with animation when a lengthy operation is going on. For example, When the Windows Explorer is searching for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.