TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,866
  • Total Topics: 21,296
  • Online today: 492
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 218
  • Total: 219
  • @rjen

Combo box question

Started by fugi, September 18, 2005, 09:56:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fugi

How do I add a CB containing links which I will define?
Is there such a feauture?
Thnx in advance

IchBin

CB = center block?

If that's what you're talking about just go into the "edit blocks" section of the TPadmin. Add a center block and just put in the code for the links in the center block.

fugi

#2
CB as the title says is the Combo Box.
Is that the same with combo box? If so, what's for the extra code.
I thought it was only the links what I should add

EDIT: OK, I saw what u meant with center block, I wasn't talking abt that


Moocat

for a link its
<a href="http://typeurlhere.com">Click here</a>

to make a link. change click here to the link text, and obviously, type the url where it says typurlhere.
i hope thats what you're asking and that you mean javascript/html block when you ask about combo blocks.

fugi

Thnx for the reply but that's not what I'm asking.
I already know how to add links in a block :8

When I say cb I mean drop down menu, like the one in the selection drop down menu in box "Themes".

Moocat

ohhh.
so you want a drop down menu with links? and when you select one and hit ok it takes you there?

Moocat

#6
try this

<form name="links">
<select name="menu" onChange="window.open(document.links.menu.options[document.links.menu.selectedIndex].value);">
<option value=''>Please choose</option>
<option value="http://www.red.com">A red page</option>
<option value="http://www.whatever.com">Whatever.com</option>
<option value="http://www.blahblah.com">Blach Blah.com</option>
<option value="http://www.tinyportal.co.uk">Tinyportal</option>
</select>
</form>

i don't think it will work in a plain HTML box, so make it a html/js block.
i assume that is what you are looking for... lol :)

fugi

Yes! Just what I was looking for!
U r the best cat ;)

Moocat


iowamf

Nifty code - thanks for the example.

For some reason - I can't get this to work on TinyPortal v.0.7.2b_180805 ?

Any chance of getting the referenced URL to open up in the center of the portal versus a new window? 

Thanks & Regards

This website is proudly hosted on Crocweb Cloud Website Hosting.