Urban75 Home About Offline BrixtonBuzz Contact

Website Script problem.

Boris Sprinkler

Dont be scared
Right as a favour to my father I have created a website for his business.
The main site uses CSS and HTML. I have no knowledge of coding websites and I am confused as to how or where i should place a script that opens a flash based gallery in several pages. The main page coding is thus


DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="Hortus, Exeter's premier location for exclusive gifts for garden and home. Sourced throughout Europe, Hortus offers the finest plants, ornaments and design ideas."></meta>
<meta name="author" content="Boris Sprinkler"></meta>
<meta name="keywords" content="Exeter, Garden, Devon, Design, Gifts, Chocolate, Chilli, gardendesign, food, lighting, trellis, pots, ceramics, exmouth, plants, planting, spain, andelucia, hablas, horticulture, hortus, birthday, wedding, presents, christmas"></meta>
<title>Welcome to Hortus - Products</title>
<link rel="stylesheet" type="text/css" media="screen" href="/main.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="/colorschemes/colorscheme1/colorscheme.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="style.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="style3.css"></link><script type="text/javascript" src="test.js"></script></head>
<body id="main_body">
<div id="_wfx_document">
<div id="container">
<div id="header">
<div id="text_caption">Hortus, 1A Central Station, Queen Street, Exeter, EX14 3SB</div>
<div id="key_visual">&nbsp;</div>
<div id="logo">&nbsp;</div>
</div>
<div id="main_container">
<div id="left_column_container">
<div id="main_nav_container">
<ul id="main_nav_list">
<li><a class="navimain_link navimain_link_1" href="index.html"></a></li>
<li><a class="navimain_link navimain_link_2" href="2.html"></a></li>
<li><a class="navimain_current" href="3.html"></a><div class="sub_nav_container">
<ul class="sub_nav_list">
<li><a class="navisub_link navisub_link_5" href="5.html"></a></li>
</ul>
</div>
</li>
<li><a class="navimain_link navimain_link_4" href="4.html"></a></li>
</ul>
</div>
<div id="sub_container1"></div>
</div>
<div id="sub_container2">
<div id="content_container"><h1>Products & Services</h1><p>Antique pots & garden tools.* </p><p>Baskets from Andalucia.</p><p>Exotic & unusual
plants.</p><p>Handmade Beeswax candles <br/>from Cumbria.</p><p>Oak garden labels from Hampshire.</p><p>Organic* handmade
<br/>chocolates.</p><p>Soaps from Provence. </p><p>Terracotta* candles from Cornwall.</p><p>Wall sconces & candlesticks for
the conservatory & garden.</p><p>Why not <a href="https://websitebuilder.1and1.co.uk/xml/wfxdirect/preview;jsessionid=4BDA91E918603016B943C7F5D64F6786.TC111a?mode=edit#">contact
us</a> for gift ideas.</p>
</div>
</div>
</div>
<div id="footer">
<div id="footer_text">hortus.org.uk</div>
</div>
</div>
<div id="extra_div1"><span></span></div>
<div id="extra_div2"><span></span></div>
<div id="extra_div3"><span></span></div>
<div id="extra_div4"><span></span></div>
<div id="extra_div5"><span></span></div>
<div id="extra_div6"><span></span></div>
<div id="extra_div7"><span></span></div>
<div id="extra_div8"><span></span></div>
<div id="extra_div9"><span></span></div>
<div id="extra_div10"><span></span></div>
<div id="extra_div11"><span></span></div>
<div id="extra_div12"><span></span></div>
</div>
</body>
<html>







Whilst the script I want to insert is:


<script type="text/javascript" src="/spicons/tinc/common/gallery/album.js">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="462" align="middle">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value=""/>
<param name=menu value=false>
<param name="quality" value="high"/>
<param name="bgcolor" value="#ffffff"/>
<embed src="" " quality="high" menu=false bgcolor="#ffffff" width="500" height="462" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>







Now the script above was just created via one and one's automatic flash gallery, now they state I should just copy that into the page I want via my text editor (I'm using notepad, although this - work - laptop does have Frontpage on it). One thing I must state is I am confused as to why there isn't a closing </script> tag at the end, but that was the code their generator spewed out. I have broken the </html> links on purpose so it shouldn't render as a webpage in here, but I'm confused. Eveytime I have placed it into the page where would like it to go

under

<Wall sconces & candlesticks for
the conservatory & garden> it always breaks he CSS coding. Also I have tried both as they state and with a closed </script> tag.

Does anybody have any ideas. Apologies for length.
 
Boris Sprinkler said:
Now the script above was just created via one and one's automatic flash gallery, now they state I should just copy that into the page I want via my text editor (I'm using notepad, although this - work - laptop does have Frontpage on it). One thing I must state is I am confused as to why there isn't a closing </script> tag at the end,
the script tag you have there is complete in itself - it's just indicating the source of a script file to import... so don't worry about a closing tag.
as for the styling... I'll leave that for someone else, (cos I don't know).
 
You should have the </script> closing tag for completeness, although most browsers will manage to interpret it properly.

How do you mean "it breaks the CSS coding"? Can you post a link or something? If that album.js file is writing stuff to the page (which I would guess it is) that might be doing something weird to the DOM, but I'd have to see the page to figure out what is going on.
 
Buddy Bradley said:
You should have the </script> closing tag for completeness, although most browsers will manage to interpret it properly.
I feel shame :( You're right - the closing tag's required.
 
The link is http://www.hortus.org.uk

There are three albums for three pages I need to insert.

If I insert my "design" gallery into the services page you'll see it's there but it's not doing anything, although this time it doesn't seem to have broken any code. I put it between the <p> codes for that pages text.


:confused:

pls note the page I put it in is different to the one listed above. The coding for above is for products, the page I put the (corresponding gallery) in is services. There's not alot of stuff there to be honest. i just wanted to create a page he could easily add to later on. That's why i went with the flash gallery as they looked (relatively) easy to configure, which they are i guess, just getting it embedded in the fucking site, /me kicks table, stubs toe, falls over.
 
FridgeMagnet said:
It's not working for me either in Safari. The Flash file at
http://www.hortus.org.uk/spicons/ti...p;fs_mode=/tinc?key=k8nTy6Ih&amp;locale=en_GB
seems to exist, but it's not appearing on the page, and looking at the code I'm not sure why.

Seriously, though, would it not just be better to have a gallery just in HTML? Forget this Flash nonsense. Images, links, much more machine-readable, better googling, works in all browsers etc etc etc rant rant.

Two reasons, one is lazyness, I'm not too hot on web design stuff at all. Second is I want to protect some images in the photowrap gallery. Just seemed like the easiest way of doing that. or not as the case may be.
 
Eh, you can't protect images - if somebody wants to, they can just do a screen grab, even on a Flash file (though it's true that it's more of a pain than right-clicking and "save as").

If nobody can see them of course they're definitely protected.
 
FridgeMagnet said:
Eh, you can't protect images - if somebody wants to, they can just do a screen grab, even on a Flash file (though it's true that it's more of a pain than right-clicking and "save as").

If nobody can see them of course they're definitely protected.

well, I'm on the right track so far then. :D

Nah, they're just pure photo's but very well done. Looks like I will have to do it in just an HTML gallery. But it's too late now. Need sleep. And it's not like i'm getting paid for it.

It was bad enough getting him setup to use a computer earlier this year. I could do without him phoning me up talking about W3C compliance.
 
Have you taken the code out now, as I can't see it on any of your pages?

It's not the script creating the problem, as it's just a thing to pop-up windows. Have a look here for some CSS/HTML solutions for an image gallery.
 
Buddy Bradley said:
Have you taken the code out now, as I can't see it on any of your pages?

It's not the script creating the problem, as it's just a thing to pop-up windows. Have a look here for some CSS/HTML solutions for an image gallery.


it's still in the services page. Thanks for the link I'l have a look later. :)
 
Back
Top Bottom