PDA

View Full Version : calling pictures into css, htm page on geocities


ampws_1
11-15-2004, 07:09 PM
Hello,

Have hade some success with scrip below before. Worked on own site, attempted to use on yahoo geocities and had major problems.

Is my script incorrect? Do I need to update it?

Being a newbie I cut and pasted it from a help site. I have the .css & .htm sheets and they work fine.

In geocities the .htm is called but the picture no longer appears. It is as if it doesn't recognise the picture location.



<title>Andy's Manga Page</title>

<SCRIPT language="JavaScript" type="javascript">

function doPopUp(){
doPopUpWindow = window.open("Picture_Pane.htm","Picture_Pane","width=600,height=800,scrollbars=yes,resizable=yes,status=no"+pos);
}

pic=location.search.substr(1).split("?")
pic_URL='<img src="' + pic + '">'

</script>

<base target="_self">

</head>



The calling string is:

<td width="12%" align="center"><a href="Picture_Pane.htm?Pictures/96NOV-01.jpg" ><img border="2" src="Thumbnails/96NOV-01_small.jpg" alt="96NOV-01.jpg (11558 bytes)" width="100" height="103"></a></td>

Initial work done with FP2000

Would appreciate help.

ampws (newbie)

ps.
link to page under construction so can see problem.

http://www.geocities.com/longson_shoes/men.htm

ronaldb66
11-16-2004, 09:18 AM
I don't know for sure, but the resulting URL when I click on a picture looks rather screwy; a html page name with a query string added, functioning as subdirectory will likely not be found...
By the way: you don't seem to be calling that function (doPopUp) at all; check back at the source where you got it from for instructions on how to properly call the function.

ampws_1
11-20-2004, 09:28 PM
Hello Ronald thanx for response, I checked with geocities problem was their end if you go to link now you will see what should have happened.

Problem now is every time you close their geocities box on index page gif stops animating.

Maybe should have gone for decent i.e. not free web hoster.

ampws_1