dotkpay Posted January 13, 2011 Share Posted January 13, 2011 Hello, Is there a css function or anything that can call a javascript file. The css currently has an image in that exact position but I need the javascript file to run an image slideshow in that exact <div>. The current function is "#div_name url(images/header.jpg)" Can anyone show me how to have the javascript file in that positon. Thanx in advance. Quote Link to comment https://forums.phpfreaks.com/topic/224334-call-js-file/ Share on other sites More sharing options...
haku Posted January 14, 2011 Share Posted January 14, 2011 You don't need to (and can't) do this from CSS. You just target that element with your javascript and load the javascript file normally in the <head> of your HTML. Quote Link to comment https://forums.phpfreaks.com/topic/224334-call-js-file/#findComment-1159223 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.