Hello. rather than just having a list or categories in my Radio app I'm trying to add a dropdown with a list of Genres (categories).
It works fine but it opens in a new tab. How can I make this open in the same tab or window. Also I would like to have the selection box be to the right of "Choose Station by Genre" instead of below.
Below is my code...
<p>Choose Station by Genre:</p>
<form name="form1">
<select name="genre" id="genre">
<option value="default">Select</option>
<option value="/page/station-category?category=1">60s</option>
<option value="/page/station-category?category=2">70s</option>
<option value="/page/station-category?category=3">80s</option>
<option value="/page/station-category?category=4">90s</option>
<option value="/page/station-category?category=7">Alternative</option>
<option value="/page/station-category?category=11">Blues</option>
<option value="/page/station-category?category=16">Christmas</option>
<option value="/page/station-category?category=18">Classic Rock</option>
<option value="/page/station-category?category=21">Comedy</option>
<option value="/page/station-category?category=24">Country</option>
</select>
<script type="text/javascript">
var urlmenu = document.getElementById( 'genre' );
urlmenu.onchange = function() {
window.open( this.options[ this.selectedIndex ].value );
};
</script>
- 628
- 632
-
- · Will Monte
- ·
Happy New Years!
-
- · RJ Arsenault
- ·
Jolly New Year!
-
- · Lisa Ciesniewski
- ·
HAPPY NEW YEAR!!!!
Looking forward to an EXTRAORDINARY 2022!!
Wishing Y'all abundance and peace this year!!
@LeonidS . Below is my navigation menu with the (more) links open.The font color for the main menu (more) link is included with the Main Menu settings but the background color is included with the Popup settings. Please move the Main Menu's (more) link background color setting to be included with the Main Menu settings (not the popup settings).
For the navigation menu I use a dark background color and white font. I would like to use the same for the (more) link in the navigation menu but the settings for the more link background color is in the popup settings. Seems like the more link for the navigation menu should be included with the navigation menu settings not the popup settings because the popup back ground color settings effect the more menus throughout the site..
- 599
-
-
·
Alex T⚜️
- ·
Actually we can't include styles for every situation, for some situation you need to write CSS rules manually, like for this case. There is an area for custom CSS styles in template styles form.
-
·
Alex T⚜️
-
Okay, thanks
@LeonidS . Would it be possible to move the settings for the navigation menus (more) drop down menu to or somehow be included with the Main Menu settings and not be included in the popup settings? With the (more) menu being part of the main menu it does make a lot of sense to keep the settings for both together.
I have a dark background and white font on my navigation menu and white background with dark font on the popup menus throughout the site because it's much easier to see them. Of coarse that won't work with the navigation drop down (more) settings to be included with popups settings.
I know this is a tall order but I really hope you can make this change.
- 597
-
-
·
LeonidS
- ·
Hello @John Curtis !
I guess it would be good to have more screenshots about your idea :-) I have a feeling that I didn't get it properly.
-
·
LeonidS
-
@LeonidS . Below is my navigation menu with the (more) links open.The font color for the main menu (more) link is included with the Main Menu settings but the background color is included with the Popup settings. Please move the Main Menu's (more) link background color setting to be included with the Main Menu settings (not the popup settings).
For the navigation menu I use a dark background color and white font. I would like to use the same for the (more) link in the navigation menu but the settings for the more link background color is in the popup settings. Seems like the more link for the navigation menu should be included with the navigation menu settings not the popup settings because the popup back ground color settings effect the more menus throughout the site..
Grand Master
Total points: 5475.5
Thank you @LeonidS , that worked great.
Would you by chance have a suggestion on how to place the selection box be to the right of "Choose Station by Genre" instead of below?
The RAW blocm with this code works fine:
<script langauge="javascript">
$(".bx-page-raw-container p").css("float", "left").next().wrap( "<p style='float: left;'></p>" )
</script>
Yes this does do the trick. Thank you.