Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse adslight AntiHarvesting AntiMalUser AntiSpam API Australia Ban banner Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion database demo docek download Dresses editor evden eve facebook Federated floor free Gateway herre Honeypot Human IP jQuery kantor lamps Legal log logger mobile module modules Monster MyAlbum-p Networks newbb news Notices online PageRank pdf Permissions pink Plugin portal Prevention profile project Protector publisher release Rights rmcommon Room sale security SERIAL Server site Smarty Spam statistics stem Studio tag tags tdmcreate template Theme themes userlog website Whitepaper XML XooLaT xoops Xoopspoll Xortify xthemes Yolande ZendFramework

New Users

Registering user

# 136005

bluestarsdie

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2004/3/18 23:08 Iframing in Xoops
I have a question for you gurus.
It goes as follows, I have this one page made in XOOPS that has a load of movie clips that my client has starred in and I wanted to know if there is a way I can get them to load within a iframe in xoops.

Or better yet is there a module for loading and viewing mpg clips?

Top

IShades
Just popping in
Just popping in
Joined:
2004/2/19 23:11
Group:
Registered Users
Posts: 96
(Show More) (Show Less)


#2 Posted on: 2004/3/19 1:21 Re: Iframing in Xoops
Well I figured it out, thanks to someone soooooooo

Here is how it's done!

=====================================================
Ok, this may sound a bix complex, and this will not disable them, but change the selected one to a lighter colour, and of course you could make them darker.

You will need to have the links id'd. Example:



:--------------------------------------------------------------------------------MENU<br />
<
a href="1.html" id="link1" target="iframe">1</a><br />
<
a href="2.html" id="link2" target="iframe">2</a><br />
<
a href="3.html" id="link3" target="iframe">3</a><br />
<
a href="4.html" id="link4" target="iframe">4</a><br />
<
a href="5.html" id="link5" target="iframe">5</a><br />
<
a href="6.html" id="link6" target="iframe">6</a><br />
<
a href="7.html" id="link7" target="iframe">7</a><br />
<
iframe name="iframe" id="iframe"></iframe>--------------------------------------------------------------------------------


The next step is to add to every page (1.html2.htmletca javascript which changes the linksBelow is the code to add to the <headof the pagesThe example is for the first (1.htmlpageYou will have to change the number for each page.


code:--------------------------------------------------------------------------------<script type="text/javascript" src="num1.js"></script>--------------------------------------------------------------------------------


After this you must create a file for each page, named num1.js, num2.js, etc and in each place the following. The example is for the first page, and you will have to modify each one to suit. I am sure you will work out what to do.


code:--------------------------------------------------------------------------------parent.document.getElementById('link1').style.color = '#BDBDBD';
parent.document.getElementById('link2').style.color = '#000000';
parent.document.getElementById('link3').style.color = '#000000';
parent.document.getElementById('link4').style.color = '#000000';
parent.document.getElementById('link5').style.color = '#000000';
parent.document.getElementById('link6').style.color = '#000000';
parent.document.getElementById('link7').style.color = '#000000';

=========================================================


Maybe someone wants to make a mod of this...
I can now call the clips form the same page and have them load in an Iframe within the same page as well.


Basicly I called every link to its own Id.
Example: <a href="whatever.html" Id="link1" target="iframe">

Top

IShades
Just popping in
Just popping in
Joined:
2004/2/19 23:11
Group:
Registered Users
Posts: 96
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]