icemarle
Apr 26 2005, 12:34 AM
| | Ir's about Frontpage's DHTML Effects thing. You can make rollovers using that, right? Anyway, when I tested the rolloves offline, It worked! But when I uploaded it, it won't work. Is there something I did wrong? What should I do? I'm new at creating rollovers. 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. |
Reply
whyme
Apr 26 2005, 12:57 AM
When you generate DHTML rollovers in frontpage, Frontpage should prompt you to save a seperate javascript file when you exit the program. I took a look at your page coding and saw this: CODE </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: CODE file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js
to just: CODE animate.js If you need anymore help, just give me a PM.  -whyme
Reply
snlildude87
Apr 26 2005, 12:57 AM
Got it.  CODE <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: CODE <script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js">
Reply
icemarle
Apr 26 2005, 01:03 AM
Ohh! Sorry about that! Thanks you two! I'm just a rollover newbie. Sorry for the trouble! I'll fix it right away!
Reply
moonwitch
Apr 26 2005, 01:05 AM
Well, I see two folks beat me to it  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.
Reply
snlildude87
Apr 26 2005, 01:08 AM
icemarle, remember to post back your results, and let us see if you fixed the problem or not.
Reply
icemarle
Apr 26 2005, 01:09 AM
Where can I find the edit button? Anyway, I did it, it still didn't work... I uploaded the js, and edited the code. Still nothing...
Reply
snlildude87
Apr 26 2005, 01:33 AM
Edit button's gone because users were abusing the hosting credit system with it. If you want to edit, report (  )your own post, and the moderators or admins will take care of it.  Hmm, where exactly did you place animate.js? In the same folder as i2sl4.html?
Reply
icemarle
Apr 26 2005, 01:40 AM
Yes. I placed it in the same folder. Maybe it's something written in the animate.js? I don't know JavaScript. In fact, I'm scared of learning Javascript. I was too attched to HTML, so I dont know what to do with it. Animate.jsToo 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.
Reply
snlildude87
Apr 26 2005, 01:52 AM
Hmm, I'm looking at your rollover code, and it's definately harder than it's meant to be. I'll tell you what, give me the URLs of the images (before mouse over and on mouse over), and I'll write the code for you to make it work.  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.
Reply
Latest Entries
icemarle
Apr 27 2005, 02:52 AM
Yes, it's true. I did put several scripts of that for each image.  I know nothing about Javascript, like I mentioned before, I'm afraid to tamper with it. So here I am waiting for someone to show me how to create a script that I can use for the entire page. (Or is it all I need? If I delete all but one of those head tag scripts, will it work?)
Reply
clagnol
Apr 27 2005, 02:22 AM
Somebody beat me to the preload function 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
icemarle
Apr 27 2005, 01:42 AM
I see. I changed my script. It isn't DHTML anymore. It takes a second for the rollover to work in IE. (1 sec. of cursor over the image) But it doesn't work at all in Firefox. (For me) But it works in all browsers offline. Strange. I PMed you about this too. You haven't seemed to reply yet. I guess you're busy, but you should check out what I changed before you make scripts for me. Once again, Thank you for your time!
Reply
whyme
Apr 27 2005, 12:50 AM
CSS is Cascading Style Sheets, it's another wat that you can do rollovers and create content layout without fumbling around with javascript. If you want to try out CSS, PM me, and i'll do it for you later this week, right now, I'm a bit busy with work. - whyme
Reply
icemarle
Apr 26 2005, 05:00 AM
What's CSS? Thanks for the help again! It's so nice of you! Yeah, my connection's slow. But at least it could help me test the site if it's friendly for slower connections. A lot of people still use slow connections you know.
Reply
Recent Queries:--
what is fpclass/animate.js - 173.40 hr back. (1)
Similar Topics
Keywords : rollover
Looking for rollover
|
|
Searching Video's for rollover
|
advertisement
|
|