OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 04 Jun 2005, 17:30:37

Title: pictures as link in the briefings/overviews
Post by: 456820 on 04 Jun 2005, 17:30:37
im wondering if i can add a ppicture in the overview or briefing files and use it as a link to take me to a new page where i can have the story so far ?
Title: Re:pictures as link in the briefings/overviews
Post by: rado1265 on 04 Jun 2005, 18:08:20
I didn't try it (yet), but I think it can't be much different from making a standard section, so try this: <a href = "#picture name"></a>.

EDIT:  Forgot: in needed section place: <a name = "picture name"></a>.

It's from the head, so it might not be entirely correct.
Title: Re:pictures as link in the briefings/overviews
Post by: rado1265 on 04 Jun 2005, 19:42:13
Hey, 456820, this might be more correct:

<a href = "#sectionname"><img src = "picturename" width = "num" height = "num"></a>

and:

<a name = "sectionname"></a>

If is not, then wait on reply from someone that have already done this.
Title: Re:pictures as link in the briefings/overviews
Post by: 456820 on 04 Jun 2005, 20:18:41
i know Sui has already done this and thas what gave me the idea in the overview i just want a small picture wich goes to a new page (with a link back of course) so i can explain why the player is here and so on at the beging of my campaign.
ill have a go with your idea Karantan
Title: Re:pictures as link in the briefings/overviews
Post by: h- on 04 Jun 2005, 21:19:50
This should pretty much work...
Code: [Select]
<h4><a href="#yourSection"><img src="yourPic.paa" width="W" height="H"></a></h4>Of course change all the necessary values to what you need...

So I think Karantan was quite right...

EDIT:
You can't actually have multiple pages in OFP, just 'jumps' to some different part of the same page...
Title: Re:pictures as link in the briefings/overviews
Post by: 456820 on 04 Jun 2005, 21:20:46
thankls alot cheers ill test some time and report back
Title: Re:pictures as link in the briefings/overviews
Post by: 456820 on 04 Jun 2005, 21:25:02
how do i make alink so you can jump back to the overview page ?
Title: Re:pictures as link in the briefings/overviews
Post by: h- on 04 Jun 2005, 21:34:28
Use that same kind of line as with the pic, but remove the img src...

Code: [Select]
<h4><a href="#yourSection"></a></h4>
Of course now the section should be changed to the name of the 'page' you originally use the pic link...