Back to Top Arrow... - Post ID 280918
I am using this script:
background: #000000 url("up-arrow.png") no-repeat center 43%;
$('body').prepend('<a href='./index-arrow/up-arrow.png' class="back-to-top">Back to Top</a>');
<a href='./index-arrow/up-arrow.png' class="back-to-top">Back to Top</a>
When I use this <a href> './index-arrow/up-arrow.png' it doesn't work, I just get a black box, nothing else. Any suggestions?
The website URL is www.xtremepaintball.com.au
Thank you, All
Or if you create a folder 'img' and pop it in there? (shouldn't make any difference, but you never know... I tried it, and it worked here.)
If you can't make it work, try adding a font-icon instead. Search for 'arrow-up'. You can change the colour of it to anything you like.
background: #000000 url("up-arrow.png") no-repeat center 43%; ....change it to #000000FF
or you could try to change:
opacity: 1.0;...to 0.0;
Try one, if it doesnt work, try the other...then both if needed. Just a thought.
is telling the browsers that the up-arrow image is in the same folder as the page it is going to be displayed on. You need to be consistent in the path to the image. Find out where it is located, and make the path accordingly.
As you see, we are just making half-qualified guesses here. It would have been much better if you had posted your project file, then we would have found the error within no-time (nearly )
It's easy to overlook something you're not looking for.
Here's my S-Drive site with
examples of what can be accomplished in VSD.
Here's my CoffeeCup SCCP Shop with examples of what can be done.
This is a site I built for my work.(RSD)
This is a site I built for use in my job.(HTML Editor)
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.