godskids3
07-14-2004, 06:25 PM
Hi there,
I am extremely new to the html world and finding out more everyday. I was recently given the opportunity to edit a web site for a local radio station where I live. I have a vague idea about html code, but am finding it relatively easy to search on the web for the code I need to accomplish what I desire, so far!
My current need has presented much difficulty for me. I desire to put a rollover on our page. I found our through "html 4 for Dummies" that I must use javascript for this function. Okay, I can accept that. They even listed scripting for a very bare bones rollover, then after I try and try and can't make it work, I read on and find out that the .gif's and the .html files have to be stored in the same location. Our web site has a place on line for uploading graphics and pictures. It only accepts .gif and .jpg
I have found it's really easy to surf the web for scripting for just about any rollover (or is that mouseover?) The problem is I don't completely understand what to do with it once I get it copied onto my computer. I copied a script and found I wasn't sure which parts I was supposed to insert my personal adaptations and which parts I am supposed to leave alone.
For instance I found the following script:
2 parts to this script
=============================================
part 1
===============================================
<script language="javascript">
<!--
/*Visit A1javascripts.com for more neat scripts*/
a1=new Image(59,47)
a1.src="http://yourimage.gif"
a2=new Image(59,47)
a2.src="http://yourimage.gif"
//-->
</script>
<script>
<!--
function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}
//-->
</script>
======================================================
part 2, put this where you want your button to show
=======================================================
<!-- -->
<a href="yoururl.htm"
onmouseover="filter('img1','a2'); window.status='Status Message';return true;"
onmouseout="filter('img1','a1'); window.status='';return true;" onclick="window.focus()">
<img src="yourimage.gif" name="img1" border=0 width=59 height=47></a>
<!-- -->
Is is possible, that some one out there could highlight the parts that I am suppose to customise and help me figure out how to make this work? I am a quick study, but don't completely understand all the words used to navigate through this process yet, so please remember I am a beginner.
Quite a few years ago I took several programming classes at a local college. I found I was really proficient at adapting some one elses program for my own desires. I am sure I can do the same here, I am just needing the proverbial "leg up" to get me started.
I am extremely new to the html world and finding out more everyday. I was recently given the opportunity to edit a web site for a local radio station where I live. I have a vague idea about html code, but am finding it relatively easy to search on the web for the code I need to accomplish what I desire, so far!
My current need has presented much difficulty for me. I desire to put a rollover on our page. I found our through "html 4 for Dummies" that I must use javascript for this function. Okay, I can accept that. They even listed scripting for a very bare bones rollover, then after I try and try and can't make it work, I read on and find out that the .gif's and the .html files have to be stored in the same location. Our web site has a place on line for uploading graphics and pictures. It only accepts .gif and .jpg
I have found it's really easy to surf the web for scripting for just about any rollover (or is that mouseover?) The problem is I don't completely understand what to do with it once I get it copied onto my computer. I copied a script and found I wasn't sure which parts I was supposed to insert my personal adaptations and which parts I am supposed to leave alone.
For instance I found the following script:
2 parts to this script
=============================================
part 1
===============================================
<script language="javascript">
<!--
/*Visit A1javascripts.com for more neat scripts*/
a1=new Image(59,47)
a1.src="http://yourimage.gif"
a2=new Image(59,47)
a2.src="http://yourimage.gif"
//-->
</script>
<script>
<!--
function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}
//-->
</script>
======================================================
part 2, put this where you want your button to show
=======================================================
<!-- -->
<a href="yoururl.htm"
onmouseover="filter('img1','a2'); window.status='Status Message';return true;"
onmouseout="filter('img1','a1'); window.status='';return true;" onclick="window.focus()">
<img src="yourimage.gif" name="img1" border=0 width=59 height=47></a>
<!-- -->
Is is possible, that some one out there could highlight the parts that I am suppose to customise and help me figure out how to make this work? I am a quick study, but don't completely understand all the words used to navigate through this process yet, so please remember I am a beginner.
Quite a few years ago I took several programming classes at a local college. I found I was really proficient at adapting some one elses program for my own desires. I am sure I can do the same here, I am just needing the proverbial "leg up" to get me started.