Click to See Complete Forum and Search --> : floating hearts java script
mystiquejustice
11-12-2003, 09:59 AM
I'm trying to add floating hearts into my Front Page web site...
I saved the heart in Front Page and pasted the script but it's not this easy, I get floating x's...how do I get hearts, anyone?http://javascript.internet.com/bgeffects/floating-hearts.html
halifaxrick
11-12-2003, 12:07 PM
Are the X's the little red x's that appears when an Image can't be found? If so, all that is wrong is you have the heart image in the wrong place.
You need to change this:
var heart = "http://www.your-web-site-address-here.com/where/you/put/it/heart.gif";
to the place where your image is located.
mystiquejustice
11-12-2003, 02:22 PM
I did what you said this is what it looked like and didn't work...
var heart = "http://www3.sympatico.ca/mystiquejustice/new_page_1.htm/images/heart.gif";
Doesn't work...what have I done wrong?
Originally posted by halifaxrick
Are the X's the little red x's that appears when an Image can't be found? If so, all that is wrong is you have the heart image in the wrong place.
You need to change this:
var heart = "http://www.your-web-site-address-here.com/where/you/put/it/heart.gif";
to the place where your image is located.
cacalex
11-12-2003, 02:42 PM
mystiquejustice :
what halifaxrick point you was right ;
The image is not located at the location specified in your code...
You'll need to upload your image in your site, using you ftp access...
The var Heart value is :
http://www3.sympatico.ca/mystiquejustice/new_page_1.htm/ftp://"XXX"@www3.sympatico.ca/heart.gif
where XXX just shouldn't appear in any of your code, if you ask me...
mystiquejustice
11-12-2003, 03:07 PM
typed this ...
var heart = "http://www3.sympatico.ca/mystiquejustice/new_page_1.htm/ftp://b1ivfe45@www3.sympatico.ca/heart.gif"
Doesn't work, still no hearts flying around, what am I doing wrong...I'm going crazy now.
Originally posted by cacalex
mystiquejustice :
what halifaxrick point you was right ;
The image is not located at the location specified in your code...
You'll need to upload your image in your site, using you ftp access...
The var Heart value is :
http://www3.sympatico.ca/mystiquejustice/new_page_1.htm/ftp://"XXX"@www3.sympatico.ca/heart.gif
where XXX just shouldn't appear in any of your code, if you ask me... :confused:
cacalex
11-12-2003, 03:15 PM
http and ftp addresse are different kind of link to different kind of web server...
What you need to do is to upload your image on your ftp site, and then type the relative link to the location of your image, the http style...
For example, if your page location is in the root of the web server (http://www3.sympatico.ca/mystiquejustice/), and your image in the «images» folder, the url should look like this :
http://www3.sympatico.ca/mystiquejustice/images/heart.gif(remember you'll need to upload the image first...)
mystiquejustice
11-12-2003, 03:29 PM
I see the heart in my ftp file..it's uploaded...replaced the script with ...
var heart = "http://www3.sympatico.ca/mystiquejustice/images/heart.gif"
I'm still seeing x's...does front page hate me?
Originally posted by cacalex
http and ftp addresse are different kind of link to different kind of web server...
What you need to do is to upload your image on your ftp site, and then type the relative link to the location of your image, the http style...
For example, if your page location is in the root of the web server (http://www3.sympatico.ca/mystiquejustice/), and your image in the «images» folder, the url should look like this :
http://www3.sympatico.ca/mystiquejustice/images/heart.gif(remember you'll need to upload the image first...)
CWatsonJr
11-12-2003, 03:31 PM
Change the line that read
var heart = "http://www3.sympatico.ca/mystiquejustice/images/heart.gif";
to
var heart = "http://www3.sympatico.ca/mystiquejustice/heart.gif";
and it should work :)
You have the heart GIF already uploaded, you just have it referenced wrong.
cacalex
11-12-2003, 03:32 PM
I see the heart in my ftp file..it's uploaded
is your image is in the same folder then new_page_1.htm ??
Or is it in another folder, named «images» ???
cacalex
11-12-2003, 03:33 PM
good call, CWatsonJr
CWatsonJr
11-12-2003, 06:04 PM
Thanks cacalex :) I am good at HTML... it is this Java Script stuff that is getting to me :eek:
BTW - another solution is to move the heart.gif file to the images folder. That way the file reference won't have to be changed in the script :)
mystiquejustice
11-13-2003, 01:39 PM
I did everything you guys said in Front Page on my web page, still no hearts.
Can I ask one of you to try this yourself and see if it works for you.
http://javascript.internet.com/bgeffects/floating-hearts.html
cacalex
11-13-2003, 01:43 PM
replace
var heart = "http://www3.sympatico.ca/mystiquejustice/images/heart.gif"
by
var heart = "http://www3.sympatico.ca/mystiquejustice/heart.gif"
mystiquejustice
11-13-2003, 01:52 PM
You need to believe me, I did put that and it didn't work....I was going nuts, but now FINALLY, it worked, the thing is I don't understand why but mission accomplished.
I want to thank you and all the people who helped answered my question on here.
Originally posted by cacalex
replace
var heart = "http://www3.sympatico.ca/mystiquejustice/images/heart.gif"
by
var heart = "http://www3.sympatico.ca/mystiquejustice/heart.gif" :D