| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Rollover Question
#1
Posted 26 April 2005 - 12:34 AM
In fact, this is my first time.
Rollover Page
Please see what's wrong. It's suppose have a stroke effect on the text in the picture.
#2
Posted 26 April 2005 - 12:57 AM
I took a look at your page coding and saw this:
</script> <script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js"> </script>
right now, your javscript file is sitting in your hardrive, so your website's DHTML doesn't work. this means that you need to upload your animate.js to the same directory of your i2sl4.html, and also, change the coding:
file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js
to just:
animate.js
If you need anymore help, just give me a PM.
-whyme
#3
Posted 26 April 2005 - 12:57 AM
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js">
You are loading the file animate.js from your home computer, which is very illegal because people cannot access your files, so you have to upload animate.js and call it something like this:
<script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js">
#5
Posted 26 April 2005 - 01:05 AM
Anyhow, to prevent things like this in the future, make sure you select RELATIVE links and not ABSOLUTE... OR do the coding in a different WYSIWYG editor. (WYSIWYG = What You See Is What You Get). My suggestion for this is a freebie called 1rst Page 2000. You can download it here. It will generate better pages, as Frontpage tends to mess up most pages. Believe me, you're better off looking at other editors. When you think you're ready for the leap into code, notepad is your friend
Frontpage also creates sluggish pages because of a bad coding style.
#9
Posted 26 April 2005 - 01:40 AM
Animate.js
Too bad about the edit button. But when I seriously need to edit something I have to report it? Well, at least now I know. It'll save me from double-posting.
#10
Posted 26 April 2005 - 01:52 AM
About the report thing, yes, reporting your own post is 10 times better than double posting. We encourage members to do so because it uses less sql space.
#13
Posted 26 April 2005 - 02:21 AM
#14
Posted 26 April 2005 - 02:28 AM
1. Decrease the size of the image (dimensions) (recommended)
2. Decrease its quality (not recommended because it would be a huge turn off for your visitors)
3. Save the pics as png
You can always make the buttons smaller by resizing it using a program like Microsoft Image Resizer
Microsoft Paint does a very nice job of decreasing image sizes. Simply save it as a .jpg file.
OR! You can save your pictures are png files. I find that large png files take less than 100 KB of space whereas large jpg files can take up to 1 megabyte. Huge difference.
I don't suggest using a program to convert the image to a png file because conversions are not always smooth...I say just make the image from scratch in Paint, and save it as a png file that way.
There is a fourth option, and that is making a preloader, but I don't know how to do that.
#16
Posted 26 April 2005 - 03:20 AM
add this chunk of javascript to the <head</head> tags of your page:
<script language="javascript">
<!--
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("image1.jpg","image2.jpg","image3.jpg","image4.jpg");
//--></script>
replace image1.jpg to image4.jpg with the pictures that you are using, add more as prefered.
and replace
<body>
with this:
<body onload="preloadimages()">
by doing this, all your images will load before the site shows, so the on mouse over will automactically show up if you have a slow connection.
hope this will help,
-whyme
#19
Posted 26 April 2005 - 03:57 AM
http://www.rjprojects.cjb.net
#20
Posted 26 April 2005 - 04:05 AM
Dooga, that's a cool site! *is mesmerized*
The main problem is that it takes a long time for the swap image to show up. I wonder if I should leave a note for slower connections, or is there hope? Luckily I'm using Dial-up, so I can test it.
#21
Posted 26 April 2005 - 04:49 AM
pm me later,
-whyme
#23
Posted 27 April 2005 - 12:50 AM
- whyme
#24
Posted 27 April 2005 - 01:42 AM
Once again, Thank you for your time!
#25
Posted 27 April 2005 - 02:22 AM
But I did notice what seemed to be several identical javascripts in your code. I don't have time to pour over your code, but here is my appraisal of the situation.
You know that script that handles the function that switches images? You only need that once. You can reference that function as many times as you want in the body of your page, but inserting the script in the head multiple times only serves to slow everything down.
Presumably, you put that in your code once for each image. Classic n00b. I did the same thing before I learned a bit about Javascript.
Of course, it's entirely possible that I overlooked something in my haste (finals week!).
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















